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

Chris Green cl at isbd.net
Sun Jun 4 10:17:35 UTC 2017


On Sun, Jun 04, 2017 at 12:00:54PM +0200, Xen wrote:
> Chris Green schreef op 04-06-2017 11:38:
> 
> > It would seem than anything that *doesn't* use the /etc/resolv.conf
> > configuration set up by systemd works OK but anything that goes to
> > 127.0.0.53 fails with SERVFAIL.
> 
> This is the thing that was mentioned in that email:
> 
> - It uses nsswitch to basically take over gethostbyname*() and
>     getaddrinfo(). This means any software using a DNS library like ldns,
>     unbound, bind, knot, etc bypasses this system and gets an inconsistent
>     DNS view from the rest of the system. It explictely does not support
>     those kind of applications. Due to its issues below, this is a problem
>     for applications insisting on DNSSEC answers (eg postfix). It does not
>     supply a "local DNS server" that those dns libraries could use to get
>     a consistent view.
> 
> Apparently at this point there *is* a local "dns server" but I'm not sure
> (the .53 address you've given).
> 
Yes, it's the systemd replacement for the dnsmasq that used to be run
by Network Manager to provide local (as in 'this system only')
cacheing of DNS.

> I can only say: at least TRY to see if the search directive makes a
> difference, so you know more.
> 
Adding 'search zbmc.eu' to /etc/resolv.conf fixes the problem, I can
look up unqualified names.

All I need to do now is work out how to get the systemd-resolve
configuration to do it for me!  :-)

-- 
Chris Green




More information about the ubuntu-users mailing list