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
..
2021-09-03 22:06:44 +05:30
2021-09-03 22:06:44 +05:30
2021-09-03 22:06:44 +05:30
2021-03-09 14:34:50 -05:00
2019-07-10 14:51:18 -04:00
2019-07-10 14:51:18 -04:00
2021-09-07 21:41:38 +02:00
2018-08-22 21:20:37 -04:00
2021-07-12 11:59:04 +02:00
2021-03-02 16:14:18 -05:00
2021-09-03 22:06:44 +05:30
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-09-03 22:06:44 +05:30
2021-09-03 22:06:44 +05:30
2021-09-03 22:06:44 +05:30
2021-09-03 22:06:44 +05:30
2021-01-02 12:17:34 -08:00
2021-09-03 22:06:44 +05:30
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-09-03 22:06:44 +05:30
2021-01-02 12:17:34 -08:00
2021-09-03 22:06:44 +05:30
2021-01-02 12:17:34 -08:00
2021-09-03 22:06:44 +05:30
2021-09-03 22:06:44 +05:30
2021-09-03 22:06:44 +05:30
2021-10-19 09:36:43 -07:00
2021-12-13 07:32:04 -08:00
2021-09-03 22:06:44 +05:30
2021-09-03 22:06:44 +05:30
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-12-17 12:01:25 +01:00
2021-03-09 14:34:50 -05:00
2021-01-02 12:17:34 -08:00
2021-07-07 18:33:52 +02:00
2021-01-02 12:17:34 -08:00
2021-07-19 07:56:57 +02:00
2021-09-03 22:06:44 +05:30
2021-07-19 07:56:57 +02:00
2021-07-19 07:56:57 +02:00
2021-01-02 12:17:34 -08:00
2021-07-14 16:59:12 +02:00
2021-03-09 14:34:50 -05:00
2021-01-02 12:17:34 -08:00
2021-03-09 14:34:50 -05:00
2017-07-17 15:52:44 -04:00
2021-06-29 12:06:40 +02:00
2021-09-03 22:06:44 +05:30
2020-07-08 17:25:57 +02:00
2021-03-09 14:34:50 -05:00
2021-09-03 22:06:44 +05:30
2021-09-03 22:06:44 +05:30
2021-01-02 12:17:34 -08:00
2021-09-03 22:06:44 +05:30
2021-09-03 22:06:44 +05:30
2021-09-03 22:06:44 +05:30
2021-09-03 22:06:44 +05:30
2021-01-02 12:17:34 -08:00
2021-09-03 22:06:44 +05:30
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-03-09 14:34:50 -05:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2017-08-17 18:00:51 -04:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-03-02 16:14:18 -05:00
2021-01-02 12:17:34 -08:00
2021-01-02 12:17:34 -08:00
2021-07-07 18:33:52 +02:00
2021-12-17 12:01:25 +01:00