How to get the systemd resolver to resolve local (i.e. unqalified) names?
Xen
list at xenhideout.nl
Sun Jun 4 12:10:21 UTC 2017
Tom H schreef op 04-06-2017 13:43:
> There's bug somewhere. I'm surprised that setting a search domain in
> resolved's config doesn't result in a domain or search entry in
> resolv.conf. It shouldn't be necessary but it looks like it is.
Aye, the DNS resolution is supposed to need the search directive,
but I guess the resolve resolutin is supposed not to depend on that.
His dns resolution started using the correct search domain as soon as
"search" was added,
but getent already worked prior to that using resolve.
So systemd-resolved depends on search for its ip 127.0.0.53 as that IS
what is used by dns.
dns just interfaces to 127.0.0.53 which gets handled by
systemd-resolved.
and this dns module requires the "search". Fair enough.
But "resolve" came first in the chain.
Since "getent" did work using resolve it is peculiar that "host" did not
work using resolve.
"getent" did not use dns prior.
So getent resolution already used resolve, not dns.
And yet "host" resolution failed to work. Very strange.
More information about the ubuntu-users
mailing list