How to add additional search domains and nameserver parameters in OCP deployed on top of Red Hat Enterprise Linux 7.x?
Issue
- How do one add DNS search domains in addition to
cluster.local
for OpenShift Container Platform 3.11 deployed on top of Red Hat Enterprise Linux 7.x ? - The additional search domains manually added to the file
/etc/resolv.conf
get missing whenever a new image is deployed. - The file
/etc/resolv.conf
continues to get overwritten in OpenShift cluster nodes when a new image is deployed. - How to add an additional
nameserver
value to/etc/resolv.conf
file?
Environment
- Red Hat OpenShift Container Platform
- 3.11
- Red Hat Enterprise Linux 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.