How to get the systemd resolver to resolve local (i.e. unqalified) names?
Chris Green
cl at isbd.net
Sat Jun 3 17:09:06 UTC 2017
On Sat, Jun 03, 2017 at 05:34:27PM +0200, Xen wrote:
> 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?
>
I tried doing the following in /etc/nsswitch.conf :-
# hosts: files mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns
hosts: files mdns4_minimal [NOTFOUND=return] dns
No effect at all, same problem. All my (working) xubuntu 16.04
systems have:-
hosts: files mdns4_minimal [NOTFOUND=return] dns
--
Chris Green
More information about the ubuntu-users
mailing list