> -----Original Message-----
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Lowell Gilbert
> Sent: Friday, 28 April 2006 11:09 PM
> Cc: freebsd-questions@freebsd.org
> Subject: Re: Getting DHCP to use resolv.conf?
> "fbsd" <[EMAIL PROTECTED]> 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-----
> > [mailto:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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.

man dhclient-script

and my enter and exit scripts below from my home boxen

NB I use ddclient from ports to update dns stuff at dyndns.org and the
example.com should be replaced with your domain name in the enter-hooks

These are not totally automatic in what they do, as I prefer to 'see and
certain changes from my ISP so that is the reason for the email

Murray Taylor

Special Projects Engineer
Bytecraft Systems

P: +61 3 8710 2555
F: +61 3 8710 2599
D: +61 3 9238 4275

"Any intelligent fool can make things bigger and more complex... It
takes a
touch of genius - and a lot of courage to move in the opposite
  Albert Einstein 


The information transmitted in this e-mail is for the exclusive
use of the intended addressee and may contain confidential
and/or privileged material. Any review, re-transmission,
dissemination or other use of it, or the taking of any action
in reliance upon this information by persons and/or entities
other than the intended recipient is prohibited. If you
received this in error, please inform the sender and/or
addressee immediately and delete the material. 

E-mails may not be secure, may contain computer viruses and
may be corrupted in transmission. Please carefully check this
e-mail (and any attachment) accordingly. No warranties are
given and no liability is accepted for any loss or damage
caused by such matters.

***This Email has been scanned for Viruses by MailMarshal.***

Attachment: dhclient-enter-hooks
Description: dhclient-enter-hooks

Attachment: dhclient-exit-hooks
Description: dhclient-exit-hooks

freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to