[CentOS] Resolv.conf being overwritten

Wed May 26 11:22:17 UTC 2010
Christoph Maser <cmaser at gmx.de>

Am Donnerstag, den 20.05.2010, 19:02 -0400 schrieb Thomas Dukes:
> I am trying to add 127.0.0.1 to my resolv.conf. I added it through the
> system-config-network but if I reboot, its gone. I do not have the caching
> nameserver package installed. My ISP's nameservers are there. It must have
> something to do with DHCP.
> 
> Also, in the network config GUI, should I select the IPv6 option for either
> or both network cards?
> 
> TIA
> 

This was discussed here not very long ago.
>From /usr/share/doc/initscripts-8.45.30/sysconfig.txt:



    PEERDNS=yes|no
      modify /etc/resolv.conf if peer uses msdns extension (PPP only) or
      DNS{1,2} are set, or if using dhclient. default to "yes".


So PEERDNS=no in the right /etc/sysconfig/network-scripts/ifcfg-<X>
should be your solution.

Chris