Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: What do I put in the /etc/conf.d/net....
Date: Sun, 27 Sep 2009 20:44:09
Message-Id: E1383AE2-51D3-43A9-970D-C9B34F0B20A3@stellar.eclipse.co.uk
In Reply to: [gentoo-user] Re: What do I put in the /etc/conf.d/net.... by Nikos Chantziaras
1 On 27 Sep 2009, at 02:22, Nikos Chantziaras wrote:
2 > On 09/26/2009 11:11 PM, David Juhl wrote:
3 >> What do I put in the /etc/conf.d/net to specify name servers? I
4 >> can't
5 >> seem to modify the /etc/resolv.conf and get it to sick at boot.
6 >
7 > Depends on how you connect. If you're behind a router/gateway
8 > device that does NAT (this includes most "DSL modems"), you use the
9 > device's IP as nameserver in /etc/resolv.conf as well as routes_ethN
10 > in /etc/conf.d/net. For example, if your router's IP is
11 > 192.168.1.1, you use this in /etc/resolv.conf:
12 >
13 > nameserver 192.168.1.1
14 >
15 > And this in /etc/conf.d/net:
16 >
17 > routes_eth0="default via 192.168.1.1"
18
19 Except the route & the gateway are completely different things. They
20 _might_ happen to share an IP. They might not.
21
22 The OP asked how one specifies nameservers in "/etc/conf.d/net".
23
24 dns_servers=( "208.67.222.222" "208.67.220.220" )
25
26 might work, but it is properly and *clearly* discussed in "/etc/conf.d/
27 net.example".
28
29 I am unable to reply to David's most recent post because he's made
30 such an unslightly mess of quoting. However it seems to me that
31 bringing routes into your reply has only confused matters.
32
33 Stroller.