Two Laptop Bag
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "DNS Reverse Lookup???" Watch "DNS Reverse Lookup???" New topic

DNS Reverse Lookup???

James wu

Joined: Feb 20, 2001
Posts: 5
If I have a IP address, say,, then how can I get the domain name - 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.
I agree. Here's the link:
subject: DNS Reverse Lookup???
It's not a secret anymore!