Interview Prep/Networking/DNS resolution failures

Pods intermittently log `dial tcp: lookup orders on 10.96.0.10:53: i/o timeout`, about 5 seconds per failure.

AdvancedTroubleshootingDNS resolution failures
Answer

Likely causes → The classic conntrack race: glibc sends A and AAAA queries in parallel from the same socket, both UDP packets hit DNAT at once, one loses the conntrack insert and is dropped, and the resolver waits its 5 s timeout. Also CoreDNS overload or too few replicas.

Diagnose →

conntrack -S | grep insert_failed          # on nodes; rising = the race
kubectl -n kube-system top pod -l k8s-app=kube-dns

Fix → Add options single-request-reopen (glibc) via dnsConfig, deploy NodeLocal DNSCache (avoids DNAT for DNS), or switch to a CNI that avoids the race. Scale CoreDNS.

Prevent → Alert on CoreDNS latency and insert_failed; run NodeLocal DNSCache by default.

All Networking questions Roadmap: Networking for DevOps

More on DNS resolution failures