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
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().
Step by Step Solution
3.45 Rating (174 Votes )
There are 3 Steps involved in it
To implement a simple UDP iterative server and client for converting a DNS name into its IP addresses we need to follow a series of steps for both the server and client components Heres a stepbystep b... View full answer
Get step-by-step solutions from verified subject matter experts
