Why do pods/containers have option "ndots=5" in resolv.conf on OpenShift?
Issue
- Search domains from
/etc/resolv.confgets appended to DNS queries of any URL within Pods. - Multiple DNS queries for any URL from Pods lead to invalid DNS lookups, flooding DNS server.
- Why did the
ndotsoption sets with value5in the/etc/resolv.conffile of the Pods? - Is it possible to modify the
ndotsdefault value at Pod level or cluster level?
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 3
- 4
- DNS
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.