Kubernetes Network Debugging Cheat Sheet/Launch a temporary DNS utility pod

Create an interactive pod for nslookup and dig style checks.

Section: DNS and Ingress

Launch a temporary DNS utility pod

bash
bash
kubectl run dnsutils -n <namespace> --image=registry.k8s.io/e2e-test-images/agnhost:2.39 --restart=Never -it --rm -- /bin/sh

Learn 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
Resolve a service from inside a pod
Check internal DNS resolution using the full service name.
OpenIn sheetbashsame section
Resolve a service with getent
Alternate DNS check inside Linux-based containers.
OpenIn sheetbashsame section
Check CoreDNS pods
Verify DNS control-plane pods are healthy.
OpenIn sheetbashsame section
Read CoreDNS logs
Inspect DNS errors and upstream resolution problems.
OpenIn sheetbashsame section
List Ingress objects
Inspect ingress addresses and classes.
OpenIn sheetbashsame section
Describe an Ingress
Check backend mapping, TLS, and events.
OpenIn sheetbashsame section