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

Tom H tomh0665 at gmail.com
Sun Jun 4 13:40:49 UTC 2017


On Sun, Jun 4, 2017 at 7:10 AM, Chris Green <cl at isbd.net> wrote:
> On Sun, Jun 04, 2017 at 06:45:32AM -0400, Tom H wrote:
>> On Sun, Jun 4, 2017 at 5:38 AM, Chris Green <cl at isbd.net> wrote:
>>> On Sun, Jun 04, 2017 at 11:24:52AM +0200, Xen wrote:


>> 1) if you use
>>
>> hosts: files dns
>>
>> does "getent ..." still work?
>>
> No, it simply returns nothing, no error. 'host esprimo' still returns
> SERVFAIL.

So getent works with the libnss_resolve module but not with the
libnss_dns module.


>> 1) if you use
>>
>> hosts: files resolve dns
>>
>> does "host ..." work?
>>
> No, 'host esprimo' still gives SERVFAIL. However 'getent hosts
> esprimo' works.

So "host" fails with both "resolve" and "dns" (previously it was
failing with "resolve" and returning).


> As I said I am going to add 'search zbmc.eu' to the file
> /etc/resolvconf/resolv.cnf.d/head which will fix the problem for the
> moment.
>
> I'm quite happy to do further tests if they will help find what the
> fundamental issue is.

I don't think that any more tests are needed.

The problem seems to be that host and dig can only resolve short
("zero-dotted? LOL) hostnames if there's a domain or search entry in
"/etc/resolv.conf"; and it might or might not be related to the fact
that LLMNR cannot be turned off




More information about the ubuntu-users mailing list