About
Pricing
Community
Teams
Start Free Trial
Log in
gskortz
asked on
1/2/2013
RHEL Name Resolution Local Host file and DNS
Unable to get name resolution from RHEL 5 /etc/hosts.
/etc/nsswitch.conf includes:
hosts: files dns
Example: /etc/hosts contains:
172.113.100.1 testsservername
host testservername returns: Host testsservername not found: 3(NXDOMAIN)
Thanks
GSK
Linux Networking
Linux
4
2
Last Comment
gskortz
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
farzanj
1/2/2013
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Gerwin Jansen
1/2/2013
What is in your /etc/host.conf ?
It should contain:
order hosts,bind
SOLUTION
Steven Vona
1/2/2013
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
gskortz
1/2/2013
ASKER
Responding to several comments:
/etc/hosts.conf does contain expect order = hosts,bind
ping does resolve to the expected address so /etc/nsswitch.conf or host.conf acting as expected.
getent hosts [hostname] provides what I need.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
It should contain:
order hosts,bind