Skip site navigation (1)Skip section navigation (2)
Date:      28 Apr 2006 09:09:26 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        fbsd@a1poweruser.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Getting DHCP to use resolv.conf?
Message-ID:  <44r73hu9rt.fsf@be-well.ilk.org>
In-Reply-To: <MIEPLLIBMLEEABPDBIEGMEKHHFAA.fbsd@a1poweruser.com>
References:  <MIEPLLIBMLEEABPDBIEGMEKHHFAA.fbsd@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Don't top-post, please.

"fbsd" <fbsd@a1poweruser.com> writes:

> Does anyone have a script that does this, that they can share?

It will be pretty similar to the script I posted recently for updating
your local named's forwarders list automatically.  [Which is another
approach to the same problem, and will generally perform better.]

> 
> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org
> [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Bill Moran
> Sent: Wednesday, April 26, 2006 5:06 PM
> To: Telting
> Cc: freebsd-questions@freebsd.org
> Subject: Re: Getting DHCP to use resolv.conf?
> 
> 
> On Wed, 26 Apr 2006 13:56:57 -0700
> Telting <telting@comcast.net> wrote:
> 
> > I would like to know how I can propagate the dns servers which the
> dhcp
> > client puts in resolv.conf to dhcpd.  I only see how I can only
> > explicitly list a domain server with "option domain-name-servers".
> How
> > do I propogate non static dns servers?
> 
> Write a script to updated the dhcpd.conf file when resolv.conf
> changes.  dhclient allows you to create hooks that automagically
> run a script of your choosing when a new lease is obtained.
> 
> Or you could search the list archives for when this exact question
> was asked a few weeks ago.
> 
> --
> Bill Moran
> Collaborative Fusion Inc.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44r73hu9rt.fsf>