]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: decrease mdns/llmnr priority for the reverse mapping domains
authorRonan Pigott <ronan@rjp.ie>
Wed, 6 Mar 2024 01:05:57 +0000 (18:05 -0700)
committerLennart Poettering <lennart@poettering.net>
Wed, 6 Mar 2024 17:57:36 +0000 (18:57 +0100)
commitda920fe176bd77f2ab36024ed5002a32108fc144
tree9349cdd0c78e756c31dda94e93c66c1be5e362a9
parent74d142ff3a501dbc258d7cbeda3d53fcf45a90f5
resolved: decrease mdns/llmnr priority for the reverse mapping domains

Previously all queries to the reverse mapping domains (in-addr.arpa and
ip6.arpa) were considered to be in-scope for mdns and llmnr at the same
priority as DNS. This caused sd-resolved to ignore NXDOMAIN responses
from dns in favor of lengthy timeouts.

This narrows the scope of mdns and llmnr so they are not invariably
considered as fallbacks for these domains. Now, mdns/llmnr on a link
will only be used as a fallback when there is no suitable DNS scope, and
when that link is DefaultRoute.
src/resolve/resolved-dns-scope.c
src/resolve/resolved-dns-scope.h