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

Chris Green cl at isbd.net
Sun Jun 4 10:50:43 UTC 2017


On Sun, Jun 04, 2017 at 06:19:00AM -0400, Tom H wrote:
> 
> You'd posted that "systemd-resolve ..." returned the correct address
> but that "host ..." didn't. Have you tried "dig ..." or "drill ..."?
> (I'd expect them to fail too.)
> 
system-resolve and getent find the right IP for an unqualified name.

host and dig return SERVFAIL.



If I manually add 'search zbmc.eu' to /etc/resolv.conf then everything
works as it should (or at least as I want!).

On my older (xubuntu 16.04) systems /etc/resolv.conf *does* have the
search line:-

    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
    #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    nameserver 127.0.1.1
    search zbmc.eu

So it would seem there's something wrong with the xubuntu 17.04
dhclient and resolvconf setup, or for some reason it thinks it doesn't
need to put the search line in even though the DHCP server is sending
it the information.

As a temporary fix I will add 'search zbmc.eu' to /etc/resolvconf/resolv.conf.d/head,
at least this won't get lost over reboots though it's a bit of a bodge.


-- 
Chris Green




More information about the ubuntu-users mailing list