This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Discussion: NSS - Changing DEFAULT_CONFIG for hosts lookups
- From: Florian Weimer <fweimer at redhat dot com>
- To: Jan Hacker <jan at hacker dot ch>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 07 Nov 2019 14:58:08 +0100
- Subject: Re: Discussion: NSS - Changing DEFAULT_CONFIG for hosts lookups
- References: <62A01F97-A592-4875-9764-CCDF926E74B9@hacker.ch>
* Jan Hacker:
> The current default, as defined in
> https://sourceware.org/git/?p=glibc.git;a=blob;f=nss/hosts-lookup.c;hb=HEAD
> is:
> #define DEFAULT_CONFIG "dns [!UNAVAIL=return] files"
> The proposed new default would be
> #define DEFAULT_CONFIG "files dns"
> ... effectively making the /etc/hosts file the primary source for
> hosts lookups, until overridden by a nsswitch.conf file.
I think this is a reasonable change to make. I've wanted this for a
quite a while and was waiting for the new nsswitch.conf parser (which I
expected would have centralized the policy in one place). But we can
make this change now. It's just a bit tedious to find all the places
that need changing.
Thanks,
Florian