[CentOS] resolv.conf question

Sat Feb 9 04:39:24 UTC 2008
Barry Brimer <lists at brimer.org>

> Hello,
>
> I have a centos 4.6 system acting as a router for my local network.  I
> obtain my eth0 IP address automatically via DHCP from my ISP, sc.rr.com.  If
> I add 127.0.0.1 to resolv.conf, it won't save it.  I tried adding this to my
> dhclient.conf
>
> lease {
>    option domain-name-servers 127.0.0.1;
> }
>
> The above is the only entry in the file.
>
> Don't know it caused it but my system locked up 3 times since adding this.
> Deleted the file and its fine.
>
> Any help would be appreciated.

You could modify your /etc/resolv.conf to your desired settings, 
including your ISP's DNS servers and your own localhost DNS server and 
then add "PEERDNS=no" to your ifcfg-eth0 file.