TCP/IP and Data Communications Administration Guide

Unable to Determine Name Servers

Solutions to problems in finding a name server during configuration of the DHCP server are listed below.

Problem

The dhcpconfig script could not match server names with IP addresses.

Verification: Find the IP address of the server by using the command getent hosts name.

Solution: Create the entries in the hosts database.

Problem

The dhcpconfig script is using the wrong name service for the server.

Verification: Look at the hosts entry in the /etc/nsswitch.conf file to see which name service is used to look up IP addresses (xfn, files, nis, nisplus, dns).

Solution: Change the hosts directive in the /etc/nsswitch.conf file to the correct name service. Stop and restart nscd.

Problem

The dhcpconfig script did not check the name service.

Verification: The name service preceding the [NOTFOUND=RETURN] directive in the /etc/nsswitch.conf file is authoritative. If the specified name service does not find an entry, any name services listed after this directive are not checked.

Solution: Remove the [NOTFOUND=RETURN] directive from the /etc/nsswitch.conf file and run the dhcpconfig script again. Stop and restart nscd.