Inspect DNS errors and upstream resolution problems.
Section: DNS and Ingress
Read CoreDNS logs
bash
bash
kubectl logs -n kube-system -l k8s-app=kube-dns --all-containers=true --prefixLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing DNS and Ingress
Launch a temporary DNS utility pod
Create an interactive pod for nslookup and dig style checks.
Resolve a service from inside a pod
Check internal DNS resolution using the full service name.
Resolve a service with getent
Alternate DNS check inside Linux-based containers.