aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes inetaddress dns? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "inetaddress dns?" Watch "inetaddress dns?" New topic
Author

inetaddress dns?

shilpa reddy
Greenhorn

Joined: Dec 12, 2000
Posts: 29
Hi,
I am in the process of writing a kind of a ping application.
Essentially, given a range of ip addresses the application returns the host names associated with ip addresses that it can locate.
1) The problem is that the while the app does return host names for some ip addresses, it does not for others and just returns the ip address back for the method InetAddress().getHostName().
When these same ip addresses are pinged they time out.
If the ip address cannot be located, I would think there should be an UnknownHostException thrown, but it does not seem to be happening.
2) How does the host name get resolved given the ip address? I would think this would be using DNS servers, but the hostname was also successfully returned in a scenario where there were no dns servers running. I checked the host file on the clients and these did not have any entries either.Could any one point to relavent posts,articles here?
Thanks in advance,
Shilpa.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: inetaddress dns?
 
Similar Threads
Listing Machines in a LAN
Open ports in a huge web application.
EJB romte call Exception,"Connection refused to host: win2003..."
sloowwwww Reverse DNS lookup
weblogic license error, Invalid host IP