Fix Kubernetes Pod DNS Resolution Permanently: CoreDNS Config Over Manual Edits
This guide explains why manually editing /etc/resolv.conf in Kubernetes Pods fails, details how kubelet generates DNS configuration via dnsPolicy and dnsConfig, and provides three solutions: modifying CoreDNS ConfigMap for cluster-wide fixes, per-Pod dnsConfig for exceptions, and correct dnsPolicy for hostNetwork Pods, plus the ndots:5 performance pitfall.
