Description - dnsLookup
Translate an IP address to a host name and vice versa. It shows how to use gethostbyname() and gethostbyaddr() to perform normal and inverse queries to the DNS server. It checks if a tcp port choosen by the user is listening at the remote computer.