diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-12-17 12:01:20 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-12-17 12:17:18 +0100 |
commit | dc9b69d5331dcdca4547c0490cb9fefbd89e40f6 (patch) | |
tree | a1f506d552e15ef8cbf3b2185228feaaa2e29397 /nptl_db | |
parent | 93aabf891e96e93f100081ee07989c23d7107d17 (diff) | |
download | glibc-dc9b69d5331dcdca4547c0490cb9fefbd89e40f6.tar.gz |
nss: Use "files dns" as the default for the hosts database (bug 28700)
This matches what is currently in nss/nsswitch.conf. The new ordering
matches what most distributions use in their installed configuration
files.
It is common to add localhost to /etc/hosts because the name does not
exist in the DNS, but is commonly used as a host name.
With the built-in "dns [!UNAVAIL=return] files" default, dns is
searched first and provides an answer for "localhost" (NXDOMAIN).
We never look at the files database as a result, so the contents of
/etc/hosts is ignored. This means that "getent hosts localhost"
fail without a /etc/nsswitch.conf file, even though the host name
is listed in /etc/hosts.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
(cherry picked from commit b99b0f93ee8762fe53ff65802deb6f00700b9924)
Diffstat (limited to 'nptl_db')
0 files changed, 0 insertions, 0 deletions