This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Convert IP to FQDN  RSS feed

 
Viralraj Upadhyay
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a DNS configured for IP to FQDN mapping. Here's a code to accept IP and print the FQDN

getCanonicalHostName() above returns the correct FQDN for all nodes except one for which it returns the hostname (name) of the machine. Why would that happen?
[ December 31, 2008: Message edited by: Raj Upadhyay ]
 
Viralraj Upadhyay
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okay this is resolved. Had to change the /etc/nsswitch.conf to have host name search path "dns" as the first entry.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!