How to specify own search list in `/etc/resolv.conf` while using DHCP
Issue
-
We want to append own search list to
/etc/resolv.confwhile usingNetworkManagerto configure/update/etc/resolv.confwith data received from DHCP. We setPEERDNS=yes. -
We can manually edit
/etc/resolv.conf, but when it gets overwritten byNetworkManager, the server can not resolve domain names of our own until we fix it.
Environment
Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.