DNS resolution fails for hostnames from within pods. CoreDNS pods are not running, DNS queries timeout, or upstream DNS is unreachable.
Fixes Name or service not known: hostname resolution failed
# Name or service not known: hostname resolution failedName or service not known: hostname resolution failed
This error occurs when pods cannot resolve hostnames to IP addresses via DNS. Kubernetes uses CoreDNS to provide DNS services. When DNS is unavailable, misconfigured, or upstream resolvers are unreachable, hostname resolution fails and pods cannot communicate with services.
First diagnostic step
Second diagnostic step
Third diagnostic step
Fourth diagnostic step
Fifth diagnostic step
Additional notes and platform-specific considerations.