Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: nuffsaid on March 31, 2017, 10:05:16 PM

Title: resolv.conf keeps on resetting
Post by: nuffsaid on March 31, 2017, 10:05:16 PM
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 ?
Title: Re: resolv.conf keeps on resetting
Post by: nuffsaid on April 04, 2017, 07:24:59 AM
Did anyone experience this before? This also causes a connectivity issues on the server
Title: Re: resolv.conf keeps on resetting
Post by: irwanto on June 03, 2017, 12:19:13 PM
are you install GUI rdp/vnc and Network Manager?
Title: Re: resolv.conf keeps on resetting
Post by: Administrator on June 08, 2017, 11:15:44 AM
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
Code: [Select]
PEERDNS=no
or add tis in the same file
Code: [Select]
DNS1=8.8.8.8
DNS2=8.8.4.4