This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DNS Reverse Lookup???

 
James wu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did You try getHostName() method of InetAddress class?
That should do it.
Vladan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic