[Bug 2008964] Re: resolved falls back to a non-preferred name server when the preferred name server appears to be working.
Nick Rosbrook
2008964 at bugs.launchpad.net
Thu Mar 2 15:15:28 UTC 2023
Can you please provide some debug-level logs from systemd-resolved,
during a time span where you observe this issue?
You can enable debug-level logging by running `systemctl edit systemd-
resolved`, and adding the following:
[Service]
Environment=SYSTEMD_LOG_LEVEL=debug
** Changed in: systemd (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/2008964
Title:
resolved falls back to a non-preferred name server when the preferred
name server appears to be working.
Status in systemd package in Ubuntu:
Incomplete
Bug description:
This is split from bug #2007728.
On a network with multiple DNS servers provided by DHCP, the "Current
DNS Server" shown by `resolvectl status` is sometimes not the first
server or even the second server, even when those servers appear to be
working (and other hosts continue to use them). This appears to occur
on Ubuntu 22.04 but not on Ubuntu 20.04, Ubuntu 18.04, or Windows 10.
RFC 2132 section 3.8 provides that servers are listed in order of
preference.
It seems that the correct behavior is that resolved picks as its
"Current DNS Server" the first reachable server in the list provided
by the DHCP server. The observed behavior is that resolved sometimes
picks as its "Current DNS Server" some server other than the first
reachable server in the list.
My hypothesis is that there is some name server availability check
that is too stringent and that there is no mechanism to retry the
preferred server after that check fails. I have not looked at the code
or captured packets.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2008964/+subscriptions
More information about the foundations-bugs
mailing list