You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect that when I set DNS server for an interface that there is some kind of understandable precedence wrt which one is picked as "Current DNS Server".
For example, when I set
# resolvectl dns $INTERFACE $MY_RESOLVER 9.9.9.9
then I expect that resolvectl query first tries $MY_RESOLVER and then if that fails 9.9.9.9.
Whatever works will then become "Current DNS Server". This behavior is expected to be consistent across outages of both DNS servers
Unexpected behaviour you saw
When $MY_RESOLVER is down when a DNS query happens, 9.9.9.9 is promoted to "Current DNS Server" practically forever (as it is "more available" than my preference, $MY_RESOLVER).
But, I want my system to always try $MY_RESOLVER first!
Steps to reproduce the problem
Configure two DNS servers using resolvectl
Make the "first"/leftmost unavailable
Resolve a name, see the other DNS server getting used and promoted
Make the "first" server reachable again
Resolve a name, see that the other DNS server is still set as active/current DNS server
Additional program output to the terminal or log subsystem illustrating the issue
resolved is not "erratic" in its use of DNS servers, it just sticks to the server that works instead of starting from the first time on every single lookup, since thta would be needlessly slow as we we'd then have to learn each time what it can and can't do and whether it responds/times out at all...
Closing as duplicate of #5755, under the assumption you are looking for a dumber mode of operation where it forgets what it learned each time and begins from the top of the list.
Activity
poettering commentedon Oct 20, 2022
resolved is not "erratic" in its use of DNS servers, it just sticks to the server that works instead of starting from the first time on every single lookup, since thta would be needlessly slow as we we'd then have to learn each time what it can and can't do and whether it responds/times out at all...
poettering commentedon Oct 20, 2022
Closing as duplicate of #5755, under the assumption you are looking for a dumber mode of operation where it forgets what it learned each time and begins from the top of the list.