Log in as superuser.
Open the /etc/nsswitch.conf file.
Specify DNS as a source of hosts information.
DNS can be the only source or an additional source for the hosts information. Locate the hosts line and use DNS in one of the ways shown below:
hosts: files dns |
or
hosts: nisplus dns [NOTFOUND=return] files |
or
hosts: dns nisplus [NOTFOUND=return] files |
Do not use the above syntax for NIS clients, since it will make them look for unresolved names twice in DNS.
Save the file and reboot the workstation.
Because the nscd daemon caches this information, which it reads at start up, you must reboot the workstation now.