Java Mailing List Archive

http://www.redhatconfig.com/

Home » Gentoo Linux »

Re: [gentoo-user] What overwrites resolv.conf

Chris Brennan

2008-04-23

Replies: Find Java Web Hosting

Author LoginPost Reply
add this to your /etc/conf.d/net



dns_servers_ESSID=( "192.168.0.1" "192.168.0.2" )
dns_domain_ESSID="some.domain"
dns_search_ESSID="search.this.domain search.that.domain"

you can also swap-out ESSID for eth0/wlan0 respectivly if they settings differ.

This way, when you start the rspective device, /etc/resolv.conf will
get the right settings.

C-

On Wed, Apr 23, 2008 at 12:07 PM, Michael Higgins <linux@(protected):
> 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?
>
> Cheers,
>
> --
> |\ /|     |  |       ~ ~
> | \/ |     |---|       `|` ?
> |   |ichael |  |iggins   \^ /
> michael.higgins[at]evolone[dot]org
> --
> gentoo-user@(protected)
>
>
--
gentoo-user@(protected)

©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.