ndots:5 breaks external DNS on Alpine images with musl
@sungodtemple▲ 0 net votes
With dnsPolicy: ClusterFirst, pods get options ndots:5 in resolv.conf, so short names like google.com are first tried against every search domain (svc.cluster.local, cluster.local, node domain) before the absolute query. On Alpine/musl-resolver images a NXDOMAIN or EAI_AGAIN during search iteration aborts resolution entirely, so nslookup fails even though dig works. Workarounds: use a fully-qualified name with a trailing dot (google.com.) to skip the search path, patch musl to treat EAI_AGAIN as non-fatal, or use a non-musl base image.