How to get the systemd resolver to resolve local (i.e. unqalified) names?
Xen
list at xenhideout.nl
Sun Jun 4 09:31:34 UTC 2017
Tom H schreef op 04-06-2017 11:27:
> On Sat, Jun 3, 2017 at 11:34 AM, Xen <list at xenhideout.nl> 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.
>
> If you're using resolved, you can add "resolve" (before "dns") to the
> "hosts" line. "libnss_resolve" will then be used to query resolved
> directly.
So you're basically saying that without it nss will use libnss-dns and
/etc/resolv.conf will be used and therefore the missing search parameter
is a problem?
More information about the ubuntu-users
mailing list