Solution: Check that DNS is running and configured properly.
Make sure that the /etc/resolv.conf file has name server entries with the IP addresses of valid name servers. For example:
nameserver 192.168.100.22 nameserver 192.168.100.23 nameserver 192.168.100.24 nameserver 192.168.100.25 |
Make sure that the /etc/hosts file has an entry for the fully qualified host name of the server. This fully qualified host name should be listed before the non fully qualified host name. For example:
10.1.82.52 host1.red.example.com host1 loghost |
SolarisTM 10 Operating System (OS) hosts: Make sure the /etc/inet/ipnodes file also has an entry for the fully qualified host name of the server.
Make sure that the /etc/nsswitch.conf file is configured to use files first to resolve host names. The hosts line in the nsswitch.conf file should list files first in its entry:
hosts: files dns nis [NOTFOUND=return] # OR (if NIS is not used) hosts: files dns |
Verify that you can resolve a host name to an IP address.
For example:
# nslookup host1.red.example.com Server: 192.168.100.161 Address: 192.168.100.161#53 Name: host1.red.example.com Address: 10.1.82.52 |
Solaris 10 hosts: Add this additional line to the /etc/nsswitch.conf file:
ipnodes: files dns nisplus [NOTFOUND=return]