HP Visualize c360 IRIX to HP-UX Migration Guide - Page 83
Default Configuration, The /etc/nsswitch.conf File, To Check the Current hosts Configuration
View all HP Visualize c360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 83 highlights
Domain Name Service Default Configuration A default nsswitch.conf file is supplied in the /usr/newconfig/etc directory. It contains the following lines: hosts: dns nis files protocols: nis files services: nis files networks: nis files netgroup: nis files rpc: nis files This is the default configuration. In other words, if you copy /usr/newconfig/etc/nsswitch.conf to /etc/nsswitch.conf, the Name Service Switch behaves the same way it would if no /etc/nsswitch.conf file existed. The /etc/nsswitch.conf File The configuration file for the Name Service Switch is /etc/nsswitch.conf, which consists of lines with the following syntax: info_type: source [status=action status=action...] source... If the /etc/nsswitch.conf file does not exist, or if no source is specified in it, the default search order is as follows: 1. DNS (for host information only) 2. NIS 3. Local /etc file For more information on the Name Service Switch, type man 4 switch at the HP-UX prompt. To Check the Current hosts Configuration To check the Name Service Switch configuration that your system is currently using for host information, start nslookup and issue the policy command, as follows: # nslookup > policy The output for the default configuration is as follows: # Lookups = 3 dns [RRCR] nis [RRCR] files [RRRR] The letters in square brackets stand for (R)eturn or (C)ontinue. They represent the values of the four status values, SUCCESS, NOTFOUND, UNAVAIL, and TRYAGAIN. In the example, the status=action pairs configured for DNS and NIS are SUCCESS=return NOTFOUND=return UNAVAIL=continue TRYAGAIN=return For the following hosts line hosts: dns [NOTFOUND=continue] files 78