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

DNS Reverse Lookup???

James wu
Greenhorn

Joined: Feb 20, 2001
Posts: 5
If I have a IP address, say, 216.115.109.6, then how can I get the domain name - www.yahoo.ca in Java.
Thank you very much for any help!
Vladan Radovanovic
Ranch Hand

Joined: Mar 20, 2000
Posts: 216
Did You try getHostName() method of InetAddress class?
That should do it.
Vladan
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: DNS Reverse Lookup???