Interview Prep/Networking/DNS resolution failures

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.

All Networking questions Roadmap: Networking for DevOps

More on DNS resolution failures