I'm stuck with using JDK 1.1.7 and I want to get the fully qualified DNS name of the machine my JVM is running on. If I use the following code:
java.net.InetAdress ia = java.net.InetAdress.getLocalHost();
String addr = ia.getHostName();
The addr is not qualified. Does any know of a way of doing reverse host name resolution based on the IP address?
Thanks in advance,
PJ
java.net.InetAdress ia = java.net.InetAdress.getLocalHost();
String addr = ia.getHostName();
The addr is not qualified. Does any know of a way of doing reverse host name resolution based on the IP address?
Thanks in advance,
PJ