> > I'm trying to get my nameserver setting to stick in resolv.conf when I > restart the network or reboot. Layman will not work with my ISP's DNS > server for some crazy reason. Anyway, I have this in /etc/conf.d/net file: >
Dale, if I understood correctly, you want to set the contents of /etc/resolv.conf and don't want dhcp to overwrite ir. Right? > modules="dhcpcd" > config_eth2="dhcp" > dns_servers_eth2="nameserver 8.8.8.8 nameserver 8.8.4.4" > > As you can see I need it set to 8.8.8.8 but it doesn't seem to see my > setting. After I restart my network, it updates resolv.conf to this: > I don't know about dhcpcd, but I'm using dhclient, and it works like this: $cat /etc/resolv.conf config_eth0=("dhcp") modules_eth0=("dhclient") dhcp_eth0="nodns" I'm not sure the last line is necessary. Then: $ cat /etc/dhcp/dhclient.conf append option domain-name-servers 127.0.0.1 Substitute 127.0.0.1 by 8.8.8.8 HTH Jorge