How do you troubleshoot intermittent DNS failures in production?
IntermediateProductionDNS & Traffic Management in Production
Answer
Check resolver health (resolvectl statistics, CoreDNS metrics), packet drops on UDP 53 (conntrack insert failures, VPC resolver 1,024 pps limit), search-domain amplification, IPv6 AAAA timeouts, and ECMP or security group issues to the resolver.
dig +tries=1 +time=2 example.com @169.254.169.253
for i in $(seq 100); do dig +short +time=1 +tries=1 api.internal | head -1; done | sort | uniq -c
The loop shows how often lookups fail and which answers rotate.
More on DNS & Traffic Management in Production
What TTL values do you choose for production records?BeginnerHow would you design DNS for high availability?AdvancedHow do you manage DNS as code?BeginnerHow do you do a zero-downtime DNS cutover?IntermediateWhy does DNS failover take longer than expected, and how do you make it faster?AdvancedHow do Route 53 health checks work and what are their pitfalls?Intermediate