On 27 Sep 2009, at 02:22, Nikos Chantziaras wrote:
On 09/26/2009 11:11 PM, David Juhl wrote:
What do I put in the /etc/conf.d/net to specify name servers? I
can't
seem to modify the /etc/resolv.conf and get it to sick at boot.
Depends on how you connect. If you're behind a router/gateway
device that does NAT (this includes most "DSL modems"), you use the
device's IP as nameserver in /etc/resolv.conf as well as routes_ethN
in /etc/conf.d/net. For example, if your router's IP is
192.168.1.1, you use this in /etc/resolv.conf:
nameserver 192.168.1.1
And this in /etc/conf.d/net:
routes_eth0="default via 192.168.1.1"
Except the route & the gateway are completely different things. They
_might_ happen to share an IP. They might not.
The OP asked how one specifies nameservers in "/etc/conf.d/net".
dns_servers=( "208.67.222.222" "208.67.220.220" )
might work, but it is properly and *clearly* discussed in "/etc/conf.d/
net.example".
I am unable to reply to David's most recent post because he's made
such an unslightly mess of quoting. However it seems to me that
bringing routes into your reply has only confused matters.
Stroller.