[systemd-devel] systemd-216: using nss-resolve
Lennart Poettering
lennart at poettering.net
Mon Aug 25 10:34:42 PDT 2014
On Mon, 25.08.14 10:59, Vladimir Elisseev (vovan at vovan.nl) wrote:
> Hello,
Heya,
> I'm trying to use nss-resolve instead of nss_dns and have several issues:
> - I'm using "Domains" in the [Network] section and systemd-resolved
> creates the "search ..." entry in /run/systemd/resolve/resolv.conf
> properly. However resolving short host names doesn't work (I've tried
> systemd-resolve-host as well as using "resolve" in /etc/nsswitch.conf)
We don't support search domains yet. It's on the TODO list however. We
currently use the domain information only for routing.
> - I'm curious hot to set FQDN of de local machine with nss_resolve:
> "hostname -f" returns only short host name as specified in
> /etc/hostname
Hmm? I am not sure I understand the question. A fqdn is something that
you usually don't set, but that is simply assigned to you, and which you
can retrieve by reverse resolving your local interfaces. In this case,
each of your addresses on your interfaces might be assigned to a
different name.
Some people set the local system to an fqdn, but I wouldn't advise
that. You can change that with "hostnamectl".
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list