]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolve: re-create link unicast scopes on reload
authorNick Rosbrook <enr0n@ubuntu.com>
Fri, 22 Aug 2025 14:46:50 +0000 (10:46 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 3 Sep 2025 10:10:48 +0000 (12:10 +0200)
commitfc74fb8cb38fe3e68d1dec341fbd3cee850ff814
treef44acd936db9b17e85f4230fb62de329e0b5bf41
parent104355caed9664733e55f5426dcb8e546a9d080f
resolve: re-create link unicast scopes on reload

On reload, resolved does not apply new DNSSEC= (or DNSOverTLS=) settings
on links, because the link unicast scopes are not re-created. However,
the servers and link states are updated correctly, so resolvectl and link
state files do show the new setting, leading users to believe the change
took effect immediately, the same way `resolvectl dnssec` does.

Fix this by freeing all of the link unicast scopes during reload, so
that they are re-created with the new settings in link_allocate_scopes().

(cherry picked from commit 6d2247208973fd40a4c8f7cc11f11c09470d074c)
src/resolve/resolved-manager.c