Perform NSLookup with the InetAddress class

This code example performs a NS lookup and prints out the IP-address along with the host name.
This is possible due to the class which we can instantiate through the static method getByName().

Search for more Java info on this site here:
Custom Search

Please type any questions here.