Skip to content

DNS Failover mode does not failover #4514

Description

@pushkar2017

Background:
ATS can be configured to use the DNS nameservers in RR mode or Failover mode using the config parameter: CONFIG proxy.config.dns.round_robin_nameservers
When CONFIG proxy.config.dns.round_robin_nameservers INT 0 the nameservers are used in failover mode. I.e. ATS will try to use the first/primary resolver in /etc/resolv.conf.
Issue:
If the primary nameserver doesn't respond, ATS is supposed to fallback to the next nameserver in the list but it doesn't do that because the code to detect failure is in DNSHandler::mainEvent. This method is only invoked when responses are received.. So it turns out to be a chicken and egg problem.

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions