OCI: /etc/resolv.conf Customizations Are Lost Periodically Or When Instance Is Rebooted
in Linux
Applies to:
Oracle Cloud Infrastructure - Version N/A to N/A [Release 1.0]
Information in this document applies to any platform.
Symptoms
Custom entries are removed from the /etc/resolv.conf file on a regular basis or when the Compute Instance is rebooted, thus loosing intended customization.
Changes
Changed /etc/resolv.conf in order to resolve company's domain,
Cause
By default, OCI services and dhclient will set /etc/hosts and /etc/resolv.conf at boot and when DHCP Lease is renewed.
Solution
NOTE: The IP addresses and host name used in this document, represent a fictitious sample (based upon made up data used in the test environment). Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.
Tagged:
0