]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: turn off that a search domain is derived from the host's fqdn
authorLennart Poettering <lennart@poettering.net>
Tue, 29 Sep 2020 14:10:40 +0000 (16:10 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 30 Sep 2020 08:37:59 +0000 (10:37 +0200)
commitb3ffa2b5f3aa68dc6ab15893d5eeba8906aa3a9e
tree3b0f42bcf55a4ff9d5fa4277b117a27dc4fa920c
parent5ced292d103ea5688784dfdaa7f66812143d3b55
resolved: turn off that a search domain is derived from the host's fqdn

If the hostname of a system is set to an fqdn, glibc traditionally
derives a search domain from it if none is explicitly configured.

This is a bit weird, and we currently don't do that in our own search
path logic.

Following #17193 let's turn this behaviour off for now.

Yes, this has a slight chance of pissing people off who think this
behaviour is good. If this is indeed an issue, we can revisit the issue
but in that case if we readd the concept we should do it properly:
derive the search domain from the fqdn in our codebase too and report it
in resolvectl, and in our generated stub files. But I have the suspicion
most people who set the hostname to an fqdn aren#t even aware of this
behaviour nor want it, so let's wait until people complain.

Fixes: #17193
src/resolve/resolv.conf
src/resolve/resolved-resolv-conf.c