Skip to content

Feature request: Parallel upstream querying #263

@xopez

Description

@xopez

Current behavior
When multiple upstreams are defined, ctrld queries the first one and only moves to the next if the previous upstream times out.
This means:

  • No concurrency between upstreams.
  • Failover introduces added latency (waiting for timeout).

Requested behavior
Add support for parallel upstream querying, where ctrld sends the DNS query to all configured upstreams at the same time at the listener policy and returns the first valid response it receives.

Benefits

  • Lower latency: fastest upstream is used, no waiting for timeouts
  • Improved reliability: protects against partial outages or degraded performance on some upstreams.
  • Consistent behavior: avoids “stick” reliance on a single upstream.

Edit:
The reason I want the feature is, that I want something like DoH and other protocols together so I don't really need to wait for the timeout for the other upstreams

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions