NsSwitch.Conf

The Name Service Switch configuration file (or nsswitch.conf(5)), typically found at /etc/nsswitch.conf, declares how domain names should be translated into IP addresses.


Example

group            compat
group_compat     nis
hosts            files dns
networks         files
passwd           compat
passwd_compat    nis
shells           files
services         compat
services_compat  nis
rpc              files
proto            files
netgroup         files


Syntax

Databases

The first column (delimited by spaces) indicates a database, while every subsequent column is a source or criteria.

Criteria

Criteria are structured as [STATUS=ACTION] or [!STATUS=ACTION].

A status can be any of...

An action is one of...

The implicit default is that a source only results in a return action given a success status. Anything else will result in a continue.


CategoryRicottone

BSD/NsSwitchConf (last edited 2023-06-22 20:39:00 by DominicRicottone)