1 |
add this to your /etc/conf.d/net |
2 |
|
3 |
|
4 |
|
5 |
dns_servers_ESSID=( "192.168.0.1" "192.168.0.2" ) |
6 |
dns_domain_ESSID="some.domain" |
7 |
dns_search_ESSID="search.this.domain search.that.domain" |
8 |
|
9 |
you can also swap-out ESSID for eth0/wlan0 respectivly if they settings differ. |
10 |
|
11 |
This way, when you start the rspective device, /etc/resolv.conf will |
12 |
get the right settings. |
13 |
|
14 |
C- |
15 |
|
16 |
On Wed, Apr 23, 2008 at 12:07 PM, Michael Higgins <linux@×××××××.org> wrote: |
17 |
> I received a used laptop a week or so ago, wiped the tinker-toy OS |
18 |
> offered with it and proceeded to do the right thing. So far, I have got |
19 |
> a machine I can (manually) put to sleep and use on a wireless network. |
20 |
> So far, so good. |
21 |
> |
22 |
> At home, I don't have a wireless AP, but a 50-ft. ethernet cable. When |
23 |
> I connect via wireless (at the office, say), then use my machine at |
24 |
> home, resolv.conf is toasted, where I use fixed IP and put my DNS |
25 |
> servers in there. DHCP is used everywhere else. |
26 |
> |
27 |
> So, what overwrites it, when, how, and how to stop it? Is there a |
28 |
> definitive guide to the syntax of the various config files? Or, BETTER |
29 |
> YET, is there anyone who has a smoothly-functioning configuration to |
30 |
> switch between wireless DHCP and connected hard-wired net setups and |
31 |
> would like to share? |
32 |
> |
33 |
> Cheers, |
34 |
> |
35 |
> -- |
36 |
> |\ /| | | ~ ~ |
37 |
> | \/ | |---| `|` ? |
38 |
> | |ichael | |iggins \^ / |
39 |
> michael.higgins[at]evolone[dot]org |
40 |
> -- |
41 |
> gentoo-user@l.g.o mailing list |
42 |
> |
43 |
> |
44 |
-- |
45 |
gentoo-user@l.g.o mailing list |