Resolv.conf rolls to original after reboot
-
- Posts: 33
- Joined: Sun Apr 27, 2014 3:40 pm
Resolv.conf rolls to original after reboot
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
This is common in VPS, if you run VPS ask to your provider to fix it from node.
-
- Posts: 33
- Joined: Sun Apr 27, 2014 3:40 pm
Re: Resolv.conf rolls to original after reboot
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
This is very unusual for dedics, but often for vps/vds ;-)
You can try this trick with edition lock:
enable lock
disable lock
You can try this trick with edition lock:
enable lock
Code: Select all
$ sudo chattr + i file-name
Code: Select all
$ sudo chattr - i file-name