How to get the systemd resolver to resolve local (i.e. unqalified) names?

Xen list at xenhideout.nl
Sat Jun 3 15:34:27 UTC 2017


Chris Green schreef op 03-06-2017 17:22:
> ... and this is even sillier:-
> 
>     chris at t470$ systemd-resolve esprimo
>     esprimo: 192.168.1.3
>              (esprimo.zbmc.eu)
> 
>     -- Information acquired via protocol DNS in 4.5ms.
>     -- Data is authenticated: no
>     chris at t470$ host esprimo
>     Host esprimo not found: 2(SERVFAIL)
>     chris at t470$

Note that the systemd system works by changing /etc/nsswitch.conf, I 
believe. On a typical Debian 8 host this file would look like this:

hosts:          files mdns4_minimal [NOTFOUND=return] dns

for the hosts line. I don't know what it does with you.

I believe it was the file

/lib/libnss_dns-2.19.so or similar that originally did that "dns" lookup 
using /etc/resolv.conf.

Now residing in /lib/x86_64-linux-gnu/libnss_dns-2.19.so

That /lib/libnss_mdns4_minimal.so.2 would be the multicast DNS (where 
you don't use a dns server).

It should be possible to get the old behaviour back by editing 
/etc/nsswitch.conf?

Regards.



> 
> 
> --
> Chris Green




More information about the ubuntu-users mailing list