Write a simple UDP iterative server and client to convert a given DNS name (for example,www.google.com) into
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a simple UDP iterative server and client to convert a given DNS name (for example,www.google.com) into its IP address(es). The client will read the DNS name as a string from the user and send it to the server. The server will convert it to one or more IP addresses and return it back to the client. The client will then print ALL the addresses returned, and exit. For basic UDP socket communication, see the sample program given. To get the IP address corresponding to a DNS name, use the function gethostbyname().
Related Book For
Computer Networking A Top-Down Approach
ISBN: 978-0136079675
5th edition
Authors: James F. Kurose, Keith W. Ross
Posted Date: