dcsimg

How can I obtain a hostname given an IP address?

Govind Seshadri

The code snippet:

String host = InetAddress.getByName("216.217.9.172").getHostName();

should give you the hostname www.jguru.com