Learn about Centmin Mod LEMP Stack today
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

    34
    5
    8
    Feb 27, 2015
    Ratings:
    +8
    Local Time:
    11:50 AM
    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

    34
    5
    8
    Feb 27, 2015
    Ratings:
    +8
    Local Time:
    11:50 AM
    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

    31,027
    6,928
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,434
    Local Time:
    2:50 AM
    Nginx 1.13.x
    MariaDB 5.5
    yup :D

     
  4. Chris

    Chris Member

    34
    5
    8
    Feb 27, 2015
    Ratings:
    +8
    Local Time:
    11:50 AM
    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