How to make /etc/resolv.conf changes persistent in cloud environment
Issue
- DNS
optionsin/etc/resolv.confare lost during reboot ipv4.dns-optionsoripv6.dns-optionsinNetworkManagerconnection settings lost during reboot- cloud-init overwrites ifcfg-* files or keyfiles causing loss of customizations
Environment
- Red Hat Enterprise Linux 8 (RHEL8)
- Cloud environment with cloud-init enabled
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.