]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolve: always read /etc/resolv.conf on reload systemd-resolved
authorPasquale van Heumen <pasquale@avtware.com>
Tue, 9 Dec 2025 15:45:10 +0000 (16:45 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 9 Dec 2025 19:56:23 +0000 (04:56 +0900)
commitca1d2ae5d6bedfbd387427409fb331e223512ad9
tree2953edf3d52caee433623e0803fc50a30c91c55b
parenta40f4ba1a802037b5e3f3cd8257088942c3348e9
resolve: always read /etc/resolv.conf on reload systemd-resolved

When systemd-resolved is used in resolv.conf foreign mode, reloading the
systemd-resolved daemon does not read resolv.conf when not touched since
the last time resolved read the file. Since the DNS servers list is
flushed during a reload, resolved forgets about the servers
in /etc/resolv.conf

When reloading the daemon it is expected that all configuration is
reloaded regardless of the disk timestamps.
src/resolve/resolved-manager.c