]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: imply SD_RESOLVED_NO_SEARCH when looking up trailing dot domains 17194/head
authorLennart Poettering <lennart@poettering.net>
Tue, 29 Sep 2020 09:53:31 +0000 (11:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 29 Sep 2020 10:12:03 +0000 (12:12 +0200)
commit3354f5003cc162bd5b549b23b92265874a0842b0
tree3aee91fa448a92e8690532e6f64931dc3eca3683
parent64c82c25ab9e7f18c6b1d8b4b01f528196e53d1a
resolved: imply SD_RESOLVED_NO_SEARCH when looking up trailing dot domains

Let's turn off the search domain logic if a trailing dot is specified
when looking up hostnames and RRs via the Varlink + D-Bus APIs (and thus
also when doing so via nss-resolve). (This doesn't affect lookups via
the stub, since for the any search path logic is done client side
anyway)

It might make sense to force the DNS protocol in this case too (and
disable LLMR + mDNS), but we'll leave that for a different PR — if it
even makes sense. It might also make sense to disable the logic of never
routing single-label lookups to the Internet if a trailing to is
specified, but this needs more discussion too.
src/resolve/resolved-bus.c
src/resolve/resolved-varlink.c