A pod's DNS queries succeed but take 1–2 seconds when the cluster is busy.
AdvancedTroubleshootingDNS resolution failures
Answer
Likely causes → CoreDNS CPU throttling (low CPU limit), too few replicas, upstream resolver latency, or the VPC resolver per-ENI limit (1024 packets/s per ENI in AWS) being hit.
Diagnose →
kubectl -n kube-system top pod -l k8s-app=kube-dns
# Prometheus: coredns_dns_request_duration_seconds, coredns_forward_request_duration_seconds
# AWS: ethtool -S eth0 | grep linklocal_allowance_exceeded
Fix → Remove CPU limits or raise them, scale CoreDNS (cluster-proportional-autoscaler), raise cache TTL, deploy NodeLocal DNSCache to spread queries across nodes.
Prevent → Dashboards for CoreDNS latency and linklocal_allowance_exceeded.
More on DNS resolution failures
`dig app.example.com` returns `status: NXDOMAIN`.Beginner`dig` returns `status: SERVFAIL` for one domain while other domains resolve fine.Intermediate`curl: (6) Could not resolve host: api.example.com` inside a container but it resolves on the host.BeginnerA DNS change was made 2 hours ago, but some users still reach the old IP.BeginnerJava service keeps connecting to an old IP long after the DNS record changed.IntermediateIn Kubernetes, external lookups from pods are slow and CoreDNS logs show many NXDOMAIN queries like `api.stripe.com.default.svc.cluster.local`.Intermediate