< Continued from page 1
Currently, the NIS support in GNU libc caters to the following nsswitch.conf databases: aliases , ethers.group , hosts , netgroup , network , passwd , protocols , publickey , rpc , services , and shadow . More entries are likely to be added.
Example 13-2 shows a more complete example that introduces another feature of nsswitch.conf .
The [NOTFOUND=return] keyword in the hosts entry tells the NIS client to return if the desired item couldn't be found in the NIS or DNS database. That is, the NIS client will continue searching the local files only if calls to the NIS and DNS servers fail for some other reason. The local files will then be used only at boot time and as a backup when the NIS server is down.
Example 13-2. Sample nsswitch.conf File
GNU libc provides some other actions that are described in the nsswitch manpage.
Prev Home Next
Setting Up an NIS Client with GNU libc Up Using the passwd and group Maps
- information from DBM files located in the /var/db directory. The corresponding NIS map name is used for that file.
Currently, the NIS support in GNU libc caters to the following nsswitch.conf databases: aliases , ethers.group , hosts , netgroup , network , passwd , protocols , publickey , rpc , services , and shadow . More entries are likely to be added.
Example 13-2 shows a more complete example that introduces another feature of nsswitch.conf .
The [NOTFOUND=return] keyword in the hosts entry tells the NIS client to return if the desired item couldn't be found in the NIS or DNS database. That is, the NIS client will continue searching the local files only if calls to the NIS and DNS servers fail for some other reason. The local files will then be used only at boot time and as a backup when the NIS server is down.
Example 13-2. Sample nsswitch.conf File
# /etc/nsswitch.conf # hosts: nis dns [NOTFOUND=return] files networks: nis [NOTFOUND=return] files services: files nis protocols: files nis rpc: files nis
GNU libc provides some other actions that are described in the nsswitch manpage.
Prev Home Next
Setting Up an NIS Client with GNU libc Up Using the passwd and group Maps
SHARE