resolv.conf keeps on resetting

Started by nuffsaid, March 31, 2017, 10:05:16 PM

Previous topic - Next topic

nuffsaid

My /etc/resolv.conf file keeps on resetting after a while or right after a reboot.
I have to now keep on adding the nameservers over and over again just to keep it working ,

How can i fix this ?

nuffsaid

Did anyone experience this before? This also causes a connectivity issues on the server

irwanto

are you install GUI rdp/vnc and Network Manager?

Administrator

if this is a vps then you can check with your provider to set dns servers for you.


Add "PEERDNS=no". This option will prevent /etc/resolv.conf from being modified
file /etc/sysconfig/network-scripts/ifcfg-eth0 (or other your server has), example

PEERDNS=no


or add tis in the same file
DNS1=8.8.8.8
DNS2=8.8.4.4