Re: Resolv.conf being overwritten

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 05/21/2010 11:24 PM, ken wrote:
>> On Thu, May 20, 2010 at 07:02:06PM -0400, Thomas Dukes wrote:
>>> 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.
> 
> Try putting the changes you want (e.g., 127.0.0.1) into
> /etc/sysconfig/networking/profiles/default/resolv.conf ... or in some
> other, more appropriate profile directory.

As a quick hack, try appending

    DNS1=127.0.0.1

to

    /etc/sysconfig/network

Such lines are used to generate resolv.conf during normal network
startup.  Don't know if the dhcp entries will override this.

Kal

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux