Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion RHEL/CentOS
  • Search

Resolv.conf rolls to original after reboot

RHEL/CentOS related topics
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
lossehelin
Posts: 33
Joined: Sun Apr 27, 2014 3:40 pm

Resolv.conf rolls to original after reboot
  • Quote

Post by lossehelin » Mon Jan 09, 2017 8:40 pm

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
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Resolv.conf rolls to original after reboot
  • Quote

Post by skamasle » Tue Feb 14, 2017 8:27 am

This is common in VPS, if you run VPS ask to your provider to fix it from node.
Top

lossehelin
Posts: 33
Joined: Sun Apr 27, 2014 3:40 pm

Re: Resolv.conf rolls to original after reboot
  • Quote

Post by lossehelin » Mon Mar 06, 2017 11:00 am

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.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Resolv.conf rolls to original after reboot
  • Quote

Post by skurudo » Tue Mar 07, 2017 9:44 am

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
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “RHEL/CentOS”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password