1 |
On 09/26/2009 11:11 PM, David Juhl wrote: |
2 |
> What do I put in the /etc/conf.d/net to specify name servers? I can't |
3 |
> seem to modify the /etc/resolv.conf and get it to sick at boot. |
4 |
|
5 |
Depends on how you connect. If you're behind a router/gateway device |
6 |
that does NAT (this includes most "DSL modems"), you use the device's IP |
7 |
as nameserver in /etc/resolv.conf as well as routes_ethN in |
8 |
/etc/conf.d/net. For example, if your router's IP is 192.168.1.1, you |
9 |
use this in /etc/resolv.conf: |
10 |
|
11 |
nameserver 192.168.1.1 |
12 |
|
13 |
And this in /etc/conf.d/net: |
14 |
|
15 |
routes_eth0="default via 192.168.1.1" |