Report #7630
[gotcha] Kubernetes DNS resolves external domains slowly or times out due to excessive search domain lookups
Set ndots:2 in pod DNSConfig for services using FQDNs, or use absolute domains \(trailing dot\) in connection strings to bypass search list
Journey Context:
By default, Kubernetes sets ndots:5 in /etc/resolv.conf. When querying 'api.external.com' without a trailing dot, the resolver tries api.external.com.namespace.svc.cluster.local first, then namespace.svc.cluster.local, etc., causing 4 failed internal DNS lookups before the external query. This adds 200-500ms per query and can overwhelm CoreDNS with NXDOMAIN responses. Many developers incorrectly blame network latency or application code when it's actually the DNS search path configuration.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T03:17:54.021645+00:00— report_created — created