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
{{ message }}
Repository navigation
[systemd-resolved] Add option to send query to all nameservers in parallel #14159
Is your feature request related to a problem? Please describe.
I have multiple dns nameservers for redundency and want to minimize latency if one of the nameservers becomes unavailable.
Describe the solution you'd like
I would like an option to tell systemd-resolved to send queries in parallel to all configured nameservers and use the first response that is returned. Thus if the first nameserver fails to respond, the client will still get a response quickly.
Describe alternatives you've considered
My current solution is using dnsmasq with the all-servers option enabled. However, if this feature was supported, then I wouldn't need dnsmasq and could just use systemd-resolved.
Reacted by darkdragon-001, Yury Pakhuchy, Florian R. Hölzlwimmer, Wolfram Schlich, Mikhail Stolyarov, VoidEmpty and Alejandro González
you can "hack" this, by adding a dummy interface for each dns server, then assigning one DNS server to each dummy interface.
There's little stopping us from allowing multiple sets of dns servers per interface and globally (i.e. additional "scopes" as we call them internally in resolved), but noone hacked this up so far. Happy to review a patch for that.
Reacted by Florian R. Hölzlwimmer and Ronan Pigott
@poettering Thanks a lot for your reply!
Do you maybe have some hints on how to implement this?
I found the resolved sources, but I do not really see where the actual request gets triggered.
Activity
monperrus commentedon Feb 5, 2020
related issue: #13925
Hoeze commentedon May 24, 2023
We constantly run into this issue. We have two DNS servers in our network but as soon as one goes offline, half of our clients get unresponsive.
wschlich commentedon Aug 29, 2023
Yes, this behavior of systemd-resolved really sucks compared to dnsmasq with the
all-serversoption.Hoeze commentedon Oct 19, 2023
Hi @keszybz, is there any way to solve this issue?
poettering commentedon Oct 24, 2023
you can "hack" this, by adding a dummy interface for each dns server, then assigning one DNS server to each dummy interface.
There's little stopping us from allowing multiple sets of dns servers per interface and globally (i.e. additional "scopes" as we call them internally in resolved), but noone hacked this up so far. Happy to review a patch for that.
Hoeze commentedon Oct 24, 2023
@poettering Thanks a lot for your reply!
Do you maybe have some hints on how to implement this?
I found the resolved sources, but I do not really see where the actual request gets triggered.
tmccombs commentedon Oct 25, 2023
Unfortunately, I haven't been able to set up a workaround using dummy interfaces. See #5573 (comment) and #20485 (comment).
Perhaps there should be a separate issue for addressing that?
rpigott commentedon Mar 28, 2024
This is really subset of #5573. Implementing that would also solve #20485.
@tmccombs yeah that's probably worth a new issue. sd-resolved should work on such interfaces, even if the above were implemented.
resolved: add concept of delegating lookups below certain domains to …
resolved: add concept of delegating lookups below certain domains to …
resolved: add concept of delegating lookups below certain domains to …
resolved: add concept of delegating lookups below certain domains to …
resolved: add concept of delegating lookups below certain domains to …
resolved: add concept of delegating lookups below certain domains to …
resolved: add concept of delegating lookups below certain domains to …
resolved: add concept of delegating lookups below certain domains to …
resolved: add concept of delegating lookups below certain domains to …
resolved: add new "DNS Delegate" concepts (#34368)