Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Apr 2004 22:53:49 +0200
From:      Henrik W Lund <henrik.w.lund@broadpark.no>
To:        freebsd-questions@freebsd.org
Cc:        jcm@FreeBSD-uk.eu.org
Subject:   Re:  How do I eliminate resolver delay??
Message-ID:  <408047DD.7080508@broadpark.no>
In-Reply-To: <20040416190150.BC2C216A4CE@hub.freebsd.org>
References:  <20040416190150.BC2C216A4CE@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> Subject:
> Re: How do I eliminate resolver delay??
> From:
> Jonathon McKitrick <jcm@FreeBSD-uk.eu.org>
> Date:
> Fri, 16 Apr 2004 19:12:58 +0100
> To:
> peter lageotakes <plageotakes@yahoo.com>
> 
> To:
> peter lageotakes <plageotakes@yahoo.com>
> CC:
> freebsd-questions@freebsd.org
> 
> 
> On Fri, Apr 16, 2004 at 11:06:48AM -0700, peter lageotakes wrote:
> : FYI:  If I remember correctly, running dhcpd
> : overwrites the resolve.conf.
> 
> That's what caused my problem.  I need a way to restore it when using the
> other network with assigned IPs.
> 
> 
> 
> jm

Your situation is identical to mine, I have a wireless card I use for my 
  home network with DHCP, and an Ethernet card for school on a fixed-IP 
network. I've thought about using enter and exit hooks with the 
dhclient, but haven't gotten around to trying it out yet.

Maybe having an exit hook that sets resolv.conf up for the fixed-IP 
nameservers whenever the wireless link is taken down? Since it's 
automatically set up when dhclient first assigns an IP you don't really 
need an entry hook, but if you want to do some fancy checks (for a 
connection on the Ether card, for instance) I guess you could set one 
up. And let's not forget the routing tables. Rather than having it in 
rc.conf, maybe throwing that into entry and exit hooks to set up the 
default gateway for the wireless is a good idea as well?

But like I said, I haven't gotten around to trying it out yet. If you 
beat me to it, do tell how it worked out, ok? ;-)

-Henrik W Lund



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?408047DD.7080508>