From the course: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Configure nsswitch.conf

Configure nsswitch.conf

- [Instructor] The name service switch, or nsswitch file, is used by applications to determine sources to get name service information from. This isn't just for domain name resolution order, but rather for multiple categories. Each category of information is identified by a database name. The first column of the file is the database name. Then remaining columns specify the order in which to look up the data. The following databases are understood: aliases for mail aliases, ethers for ethernet numbers, group for groups of users, host for host names and numbers, initgroup for supplementary group lists, netgroup for network groups, networks for network names and numbers, password for passwords, protocols for network protocols, public key for secret keys used by NFS and NIS+, rpc for remote procedure call numbers, services for network services and lastly shadow for shadow passwords. For this course we're mainly interested in the host keyword. Possible options would be files, DNS, NIS…

Contents