This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes inetaddress dns? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: inetaddress dns?
 
Similar Threads
EJB romte call Exception,"Connection refused to host: win2003..."
sloowwwww Reverse DNS lookup
Open ports in a huge web application.
weblogic license error, Invalid host IP
Listing Machines in a LAN