nsswitch.conf

The file /etc/nsswitch.conf, which sets the order of sources, such as files then DNS, for looking up hosts, users and groups.

In more detail

Its hosts line decides whether /etc/hosts is read before DNS. A bracketed action such as [NOTFOUND=return] stops the search when the previous source says the name does not exist.

Related terms

Taught in

References

Certification courses