Skip to content
Tagged articles

dnsConfig

2 articles · Page 1 of 1

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.

CoreDNSDNSKubernetes
0 likes · 10 min read
Fix Kubernetes Pod DNS Resolution Permanently: CoreDNS Config Over Manual Edits
System Architect Go
System Architect Go
Sep 18, 2024 · Cloud Native

Understanding DNS and Its Configuration in Kubernetes

This article explains the fundamentals of DNS, its role as an application‑layer protocol, and how Kubernetes generates and manages each pod's /etc/resolv.conf through kubelet, covering nameserver, search, ndots options, dnsPolicy choices, and custom dnsConfig examples.

CoreDNSDNSKubernetes
0 likes · 6 min read
Understanding DNS and Its Configuration in Kubernetes