25 lines
782 B
Plaintext
25 lines
782 B
Plaintext
# /etc/nsswitch.conf
|
|
#
|
|
# As described on the web page https://man7.org/linux/man-pages/man3/gethostbyname.3.html,
|
|
# without the nsswitch.conf file, the gethostbyname() and gethostbyaddr() domain queries
|
|
# will fail to a local name server, thus the /etc/hosts will take no effect.
|
|
#
|
|
# For example, when hostaliases are specified for a kubernetes pod, without proper settings
|
|
# defined in this file, the hostaliases settings will not take effect.
|
|
#
|
|
# Following contents of this file is from the ubuntu:16.04 docker image.
|
|
|
|
passwd: compat
|
|
group: compat
|
|
shadow: compat
|
|
gshadow: files
|
|
|
|
hosts: files dns
|
|
networks: files
|
|
|
|
protocols: db files
|
|
services: db files
|
|
ethers: db files
|
|
rpc: db files
|
|
|
|
netgroup: nis |