When DNS stops resolving in the cluster
Test from inside a pod, not from your laptop. Why a timeout and an NXDOMAIN send you to opposite ends of the cluster, and why short names failing is usually the search path.
How do I tell whether CoreDNS is the problem?
Test resolution from inside a pod rather than from your laptop, because the path is different. A timeout means the pod cannot reach CoreDNS at all, where NXDOMAIN or SERVFAIL means CoreDNS answered and the problem is the name or the upstream. Those two answers send you to opposite ends of the cluster.
Test from where the problem is
A pod resolves through the kube-dns Service and the CoreDNS pods behind it. Your laptop does not go anywhere near that path, so a test from outside proves nothing about the inside.
kubectl run dnstest --rm -it --restart=Never --image=busybox:1.36 -- \
nslookup kubernetes.defaultThe answer you get is the diagnosis
- A timeout: the query never reached anything. No CoreDNS pod is ready, or the pod cannot reach the kube-dns Service.
- NXDOMAIN or SERVFAIL: CoreDNS answered. The name is wrong, the search path is wrong, or its upstream resolver is failing.
Those two go opposite ways, which is why the test is worth running before anything else.
If it is a timeout
kubectl get pods -n kube-system -l k8s-app=kube-dns
kubectl get endpoints kube-dns -n kube-systemNo endpoints means no CoreDNS pod is ready, which is the same empty-endpoints story as any other Service. If CoreDNS itself is restarting, its own logs name the cause, and a CoreDNS pod in CrashLoopBackOff is worked the same way as any other: the first five minutes.
When only short names fail
A name that works fully qualified but not short is the search path rather than DNS being down. The resolver appends search domains in order, and the ndots setting decides when it bothers. This is configuration in the pod spec, not a broken cluster, and it often appears right after a workload moves namespace.
What KubeGraf does with this one
KubeGraf checks the CoreDNS pods, the kube-dns endpoints and what resolution actually returns from inside the cluster, so the unreachable case and the answering-but-wrong case are told apart before anyone edits a ConfigMap.
The reference
The full reference: CoreDNS not working.
Sources
Read on 25 November 2026. Check the source before you rely on a detail.
Frequently asked questions
What should nslookup kubernetes.default return?
The ClusterIP of the kubernetes Service. If that fails from inside a pod, DNS is broken rather than the name being wrong.
What does a DNS timeout tell me?
The query never got an answer. Either no CoreDNS pod is ready or the pod cannot reach the kube-dns Service.
Why does CoreDNS itself go into CrashLoopBackOff?
Usually its config or an upstream it cannot reach. The CoreDNS pod logs name the problem directly.
Why do short names fail but full names work?
That is the search path rather than DNS being down. The resolver appends search domains, so a name that only works fully qualified points at the ndots setting or the namespace.
Want this worked for you on your own clusters? Apply for KubeGraf Freemium. Three calendar months by approval, no card and no automatic paid conversion.
Last updated . Try KubeGraf Freemium.