How to get the systemd resolver to resolve local (i.e. unqalified) names?
Xen
list at xenhideout.nl
Sun Jun 4 18:50:22 UTC 2017
Tom H schreef op 04-06-2017 19:53:
> The search list is normally determined from the local domain name; by
> default, it contains only the local domain name.
Hmm. I personally still don't know exactly how the local domain name is
usually configured.
You can put it in /etc/hostname but it is not also in /etc/hosts, your
local resolving might not find it?
ie. I always have in /etc/hosts:
IP host host.local
at that point hostname -f will give a result.
but only hostname (/etc/hostname) might not work.
so I don't exactly know where it derives the local domain from :p.
A domain is also specific to a certain entry path. Your host could have
different domains based on different connections.
Principally a host doesn't even have a domain. It is part of a domain,
or can be part of one, but it does not "have" one.
So it can be some upstream domain server that determines what domain you
have.
In my case my domain is also added by my dns server (dnsmasq).
This is just .local, but it could be more.
So because my search domain I believe is configured by DHCP, I don't
know if my host has a domain outside of DHCP.
Perhaps I could configure one in /etc/hosts.
More information about the ubuntu-users
mailing list