Page 1 of 1

Resolv.conf rolls to original after reboot

Posted: Mon Jan 09, 2017 8:40 pm
by lossehelin
Hey guys, i have only noticed this now but i have a recent installation on my centos 7 server. The resolve.conf was installed with resolv.conf pointing to a local ip. This makes the server useless as it cannot connect to outside. SO i change it to use google nameservers 8.8.8.8 and 8.8.4.4. But thing is that every time i reboot the server the nameserver goes back to 127.0.0.1, and i fail to see what makes this happen. Any thoughts? thanks

Re: Resolv.conf rolls to original after reboot

Posted: Tue Feb 14, 2017 8:27 am
by skamasle
This is common in VPS, if you run VPS ask to your provider to fix it from node.

Re: Resolv.conf rolls to original after reboot

Posted: Mon Mar 06, 2017 11:00 am
by lossehelin
this is a dedicated server. i never had this issue with previous installs. the only thing different is that i am using nginx instead of apache.

Re: Resolv.conf rolls to original after reboot

Posted: Tue Mar 07, 2017 9:44 am
by skurudo
This is very unusual for dedics, but often for vps/vds ;-)

You can try this trick with edition lock:
enable lock

Code: Select all

$ sudo chattr + i file-name
disable lock

Code: Select all

$ sudo chattr - i file-name