Report #9520
[gotcha] Kubernetes DNS lookup latency 5s timeout on external domains
Set ndots:1 in pod dnsConfig or use fully qualified domain names \(trailing dot\) for external calls; alternatively, explicitly specify the resolver for external names.
Journey Context:
By default, Kubernetes sets ndots:5 in /etc/resolv.conf. When an app queries "api.example.com" \(1 dot\), the resolver first tries "api.example.com.namespace.svc.cluster.local", then "api.example.com.svc.cluster.local", etc., appending each search domain and attempting a lookup. Each failed lookup waits for a timeout \(typically 5s\). This adds 10-20s latency before the absolute lookup succeeds. Using ndots:1 means queries with 1\+ dots are tried as absolute first. Tradeoff: you lose automatic cluster-local shortname resolution for names with dots unless you use FQDNs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T08:21:42.233667+00:00— report_created — created