CoreDNS pods are in CrashLoopBackOff with `Loop (127.0.0.1:XXXX -> :53) detected for zone "."`.
IntermediateTroubleshootingDNS resolution failures
Answer
Likely causes → CoreDNS forwards to /etc/resolv.conf of the node, which points to 127.0.0.53 (systemd-resolved) or itself, so queries loop.
Diagnose →
kubectl -n kube-system logs deploy/coredns
cat /etc/resolv.conf # on the node
Fix → Point kubelet at the real upstream file: resolvConf: /run/systemd/resolve/resolv.conf in the kubelet config, or change the Corefile forward . 10.0.0.2.
Prevent → Bake the correct kubelet resolvConf into node images.
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