On Wednesday 23 April 2008, Michael Higgins wrote:
> I received a used laptop a week or so ago, wiped the tinker-toy OS
> offered with it and proceeded to do the right thing. So far, I have
> got a machine I can (manually) put to sleep and use on a wireless
> network. So far, so good.
>
> At home, I don't have a wireless AP, but a 50-ft. ethernet cable.
> When I connect via wireless (at the office, say), then use my machine
> at home, resolv.conf is toasted, where I use fixed IP and put my DNS
> servers in there. DHCP is used everywhere else.
>
> So, what overwrites it, when, how, and how to stop it? Is there a
> definitive guide to the syntax of the various config files? Or,
> BETTER YET, is there anyone who has a smoothly-functioning
> configuration to switch between wireless DHCP and connected
> hard-wired net setups and would like to share?

Aaaah, the old obliterate-your-resolv.conf file problem :-)

It is possible to tell dhcp servers to not present a resolv.conf file to 
all (or specific) clients.

However, I always found this to be a major pain in the arse. My 
solution: don't use static ip's at home, set up a dhcp server with a 
permanent lease for your machine, then have it download the resolv.conf 
that you really do want at home.

Other locations might by broken but at least you know you are guaranteed 
to get what you want when at home


-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

-- 
gentoo-user@lists.gentoo.org mailing list

Reply via email to