Welcome to Centmin Mod Community
Register Now

Resolv.conf not sticking

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Chris, Nov 4, 2015.

Tags:
  1. Chris

    Chris Member

    33
    4
    8
    Feb 27, 2015
    Ratings:
    +6
    Local Time:
    3:31 PM
    1.7
    10
    Linode seems to have put their own overwriting file in when I moved servers or upgraded to their new KVM update.

    Here is my resolv.conf file
    Code:
    # Generated by NetworkManager
    search members.linode.com
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    
    # No nameservers found; try putting DNS servers into your
    # ifcfg files in /etc/sysconfig/network-scripts like so:
    #
    # DNS1=xxx.xxx.xxx.xxx
    # DNS2=xxx.xxx.xxx.xxx
    # DOMAIN=lab.foo.com bar.foo.com
    options rotate
    
    however it seems to be erased everytime I reboot the vps or such. Any suggestions?
     
  2. Chris

    Chris Member

    33
    4
    8
    Feb 27, 2015
    Ratings:
    +6
    Local Time:
    3:31 PM
    1.7
    10
    I did edit the /etc/sysconfig/network-scripts/ifcfg-static-eth0

    PEERDNS=no
     
    • Like Like x 1
    • Informative Informative x 1
  3. eva2000

    eva2000 Administrator Staff Member

    30,165
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    5:31 AM
    Nginx 1.13.x
    MariaDB 5.5
    yup :D

     
  4. Chris

    Chris Member

    33
    4
    8
    Feb 27, 2015
    Ratings:
    +6
    Local Time:
    3:31 PM
    1.7
    10
    I tracked this down to be the reason why photobucket or any other image source wouldn't show on my forum
     
    • Informative Informative x 1