One of hundreds of answers available with our premium content service.
A: It is possible to do a reverse name look-up for an IP address using the java.net.InetAddress class. The example below first gets an instance of the class using the static getByName(String) method, then applies the getHostName() method to it. The method will only resolve a domain name if there is one configured for the host, otherwise the method returns the original IP address.
… full answer hidden
Premium members click below for full answer
How do I get a domain name from an IP address?