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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: DNS Reverse Lookup???