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. --Eddie
Thomas Dukes wrote:> 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 > >your ISP is supplying its DNS server settings via DHCP, this is whats getting copied to /etc/resolv.conf for use by applications running on your router.> lease { > option domain-name-servers 127.0.0.1; > } >I don't think thats correct. assuming you're running your own DNS server on this 'router', try... interface "eth0" { send dhcp-client-identifier 1:xx:xx:xx:xx:xx:xx; prepend domain-name-servers 127.0.0.1; } you need to change xx:xx:xx:xx... to your MAC address.
> 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.