Why do manual changes made to '/etc/resolv.conf' files get overwritten on Red Hat Enterprise Linux ?

Solution Verified - Updated -

Issue

  • System can ping with IP but can't ping with hostname
  • System doesn't properly configure nameserver info
  • Using static network and can't set nameserver information
  • Changes to resolv.conf being overwritten between boots
  • /etc/resolv.conf created during kickstart install is changed
  • Server unaccessible via network after being rebooted
  • For some unknown reason the /etc/resolv.conf file keeps getting wiped clean every other week.

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content