Systemd/src/nss-resolve
Zbigniew Jędrzejewski-Szmek 5486a31d28 nss-resolve: drop the internal fallback to libnss_dns (#5945)
If we could not communicate with systemd-resolved, we would call into
libnss_dns. libnss_dns would return NOTFOUND for stuff like "localhost" and
other names resolved by nss-myhostname, which we would fall under the !UNAVAIL=
condition and cause resolution to fail. So the following recommended
configuration in nsswitch.conf would not work:

   hosts: resolve [!UNAVAIL=return] dns myhostname

Remove the internal fallback code completely so that the fallback logic
can be configured in nsswitch.conf.

Tested with
   hosts: resolve [!UNAVAIL=return] myhostname
and
   hosts: resolve [!UNAVAIL=return] dns myhostname

Fixes #5742.
2017-05-12 14:31:46 +02:00
..
Makefile resolved: add small NSS module that uses resolved to resolve DNS names 2014-07-16 03:31:30 +02:00
nss-resolve.c nss-resolve: drop the internal fallback to libnss_dns (#5945) 2017-05-12 14:31:46 +02:00
nss-resolve.sym resolved: add small NSS module that uses resolved to resolve DNS names 2014-07-16 03:31:30 +02:00