Skip to content

[systemd-resolved] Add option to send query to all nameservers in parallel #14159

Open

Description

@tmccombs

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.

Activity

  1. added
    RFE 🎁
    on Dec 3, 2019
  2. monperrus commented on Feb 5, 2020

    @monperrus

    related issue: #13925

  3. Hoeze commented on May 24, 2023

    @Hoeze

    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.

  4. wschlich commented on Aug 29, 2023

    @wschlich

    Yes, this behavior of systemd-resolved really sucks compared to dnsmasq with the all-servers option.

  5. Hoeze commented on Oct 19, 2023

    @Hoeze

    Hi @keszybz, is there any way to solve this issue?

  6. poettering commented on Oct 24, 2023

    @poettering
    Member

    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.

  7. Hoeze commented on Oct 24, 2023

    @Hoeze

    @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.

  8. tmccombs commented on Oct 25, 2023

    @tmccombs
    ContributorAuthor

    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?

  9. rpigott commented on Mar 28, 2024

    @rpigott
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFE 🎁resolve

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions