gskortz
asked on
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
/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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
/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.
It should contain:
order hosts,bind