Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Installing and Administering Internet Services: HP 9000 Networking > Chapter 4 Configuring and Administering the BIND Name Service

Configuring the Name Service Switch

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

The Name Service Switch determines where your system will look for host information when it needs to resolve a host name to an IP address. You can configure your system to use BIND, NIS (one of the NFS Services), the /etc/hosts file, or any combination of the three, in any order.

The default Name Service Switch configuration is adequate for most installations, so you probably do not have to change it. Figure 4-2 “Default Behavior of the Name Service Switch” illustrates the default behavior of the Name Service Switch.

Figure 4-2 Default Behavior of the Name Service Switch

Default Behavior of the Name Service Switch

Following are some suggestions for customizing your Name Service Switch configuration:

  • If you want your system to consult BIND when it fails to find a host name in NIS, create an /etc/nsswitch.conf file that contains only the following line:

    hosts: nis [NOTFOUND=continue] dns files 

    With this configuration, if NIS does not contain the requested information, and BIND is not configured, the /etc/hosts file is consulted.

  • If you want your system to consult NIS if it fails to find a host name in BIND or if the BIND name servers are not responding, create an /etc/nsswitch.conf file that contains only the following line:

    hosts: dns [NOTFOUND=continue TRYAGAIN=continue] nis files 

    With this configuration, if BIND does not return the requested information, and NIS is not running, the /etc/hosts file is consulted.

HP recommends that you maintain at least a minimal /etc/hosts file that includes important addresses like gateways, diskless boot servers and root servers, and your host's own IP address. HP also recommends that you include the word files in your /etc/nsswitch.conf file to help ensure a successful system boot using the /etc/hosts file when BIND and NIS are not available.

CAUTION: Changing the default configuration can complicate troubleshooting. The default configuration is designed to preserve the authority of the name service you are using. It switches from BIND to NIS only if BIND is not enabled. It switches from NIS to the /etc/hosts file only if NIS is not enabled. It is very difficult to diagnose problems when multiple name servers are configured and enabled for use.

For more information on the Name Service Switch, see “Configuring the Name Service Switch”.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1996 Hewlett-Packard Development Company, L.P.