]> 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)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 27 Aug 2025 13:33:38 +0000 (22:33 +0900)
commit6d2247208973fd40a4c8f7cc11f11c09470d074c
tree76b57749ff3d138ae0d3fabffa4cc54ef3f1f1b5
parent71da422058e1512636e0291f17e4d55f5413db5e
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().
src/resolve/resolved-manager.c