-
Notifications
You must be signed in to change notification settings - Fork 845
Open
Description
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.