Header Shadow Image


/etc/resolv.conf keeps reverting or changing to original state

Add the following option to prevent the /etc/resolv.conf from reverting or changing to it's original state and values (To ALL network interfaces.):

# cat ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="static"
DNS1="172.0.0.20"
GATEWAY="172.0.0.1"
IPADDR="172.0.0.10"
NETMASK="255.255.255.0"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
PEERDNS="no"
#

 

Cheers,
TK

Leave a Reply

 


     
  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License