This entry says that when gethostbyname( ) and gethostbyaddr( ) are called to look up hostnames and addresses, the interfaces will first try to find the information in the local /etc/hosts file, then check with NIS, then check with DNS. Be aware that some directory services can't be combined in nsswitch.conf. For example, you cannot have both NIS and NIS+ listed in nsswitch.conf, even for different databases.hosts: files nis dns
2.2. Brief survey of common directory services | 2.4. Which directory service to use |
Copyright © 2002 O'Reilly & Associates. All rights reserved.