Cant get hostname by ip address

InetAddress address = InetAddress.getByName("java.sun.com");System.out.println(address);// will print java.sun.com/72.5.124.55InetAddress address= InetAddress.getByName("72.5.124.55");System.out.println(address.getHostName());// print
[299 byte] By [sunpengrui753114@163.coma] at [2007-10-3 3:04:48]
# 1
Because that's what the documentation says it does. I normally find it best to read the documentation rather than guess at what a method does. :-)
dannyyatesa at 2007-7-14 20:54:52 > top of Java-index,Core,Core APIs...