glibc/nss
Florian Weimer b99b0f93ee 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>
2021-12-17 12:01:25 +01:00
..
nss_compat Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
nss_db Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
nss_files Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
tst-nss-compat1.root
tst-nss-db-endgrent.root/etc
tst-nss-db-endpwent.root
tst-nss-files-hosts-long.root/etc Fix failing nss/tst-nss-files-hosts-long with local resolver 2021-09-07 21:41:38 +02:00
tst-nss-test3.root
tst-reload1.root Fix failing nss/tst-nss-files-hosts-long. 2021-07-12 11:59:04 +02:00
tst-reload2.root
alias-lookup.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
bug17079.c
bug-erange.c
compat-lookup.c
databases.def Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
db-Makefile Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
Depend
digits_dots.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
ethers-lookup.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
function.def
getent.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
getnssent_r.c
getnssent.c
getXXbyYY_r.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
getXXbyYY.c
getXXent_r.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
getXXent.c
grp-lookup.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
hosts-lookup.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
key-lookup.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
makedb.c nss: Unnest nested function add_key 2021-10-19 09:36:43 -07:00
Makefile Disable DT_RUNPATH on NSS tests [BZ #28455] 2021-12-13 07:32:04 -08:00
netgrp-lookup.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
network-lookup.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
nss_action_parse.c
nss_action.c
nss_action.h
nss_database.c nss: Use "files dns" as the default for the hosts database (bug 28700) 2021-12-17 12:01:25 +01:00
nss_database.h
nss_fgetent_r.c
nss_files_data.c
nss_files_fopen.c
nss_files_functions.c nss: Directly load nss_dns, without going through dlsym/dlopen 2021-07-19 07:56:57 +02:00
nss_hash.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
nss_module.c nss: Directly load nss_dns, without going through dlsym/dlopen 2021-07-19 07:56:57 +02:00
nss_module.h nss: Directly load nss_dns, without going through dlsym/dlopen 2021-07-19 07:56:57 +02:00
nss_parse_line_result.c
nss_readline.c Fix linknamespace errors and local-plt-usages in nss_files. 2021-07-14 16:59:12 +02:00
nss_test1.c
nss_test2.c
nss_test.h
nss_test.ver
nss.h
nsswitch.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
nsswitch.conf
nsswitch.h
proto-lookup.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
pwd-lookup.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
rewrite_field.c
rpc-lookup.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
service-lookup.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
sgrp-lookup.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
spwd-lookup.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-digits-dots.c
test-netdb.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
tst-cancel-getpwuid_r.c
tst-field.c
tst-nss-compat1.c
tst-nss-db-endgrent.c
tst-nss-db-endpwent.c
tst-nss-files-alias-leak.c
tst-nss-files-alias-truncated.c
tst-nss-files-hosts-erange.c
tst-nss-files-hosts-getent.c
tst-nss-files-hosts-long.c
tst-nss-files-hosts-multi.c
tst-nss-getpwent.c
tst-nss-static.c
tst-nss-test1.c
tst-nss-test2.c
tst-nss-test3.c
tst-nss-test4.c
tst-nss-test5.c
tst-reload1.c
tst-reload2.c
valid_field.c
valid_list_field.c
Versions nss_files: Move into libc 2021-07-07 18:33:52 +02:00
XXX-lookup.c nss: Use "files dns" as the default for the hosts database (bug 28700) 2021-12-17 12:01:25 +01:00