This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

InetAddress's getHostName() Fails to work.

 
Parth Bhatt
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I have a problem with IP Address resolution in my lan. The following is the code that i used :



The above code fails to resolver the IP Address. I am using RedHat Linux 9. If i try


i get the Hostname, as expected. Can anyone help me as to why fails to IAddr.getHostName() return the hostame.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic