From owner-freebsd-questions@FreeBSD.ORG Fri Apr 28 13:09:27 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83EAC16A407 for ; Fri, 28 Apr 2006 13:09:27 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 164EB43D49 for ; Fri, 28 Apr 2006 13:09:27 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 13340 invoked from network); 28 Apr 2006 13:09:26 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 28 Apr 2006 13:09:26 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 24A4C28425; Fri, 28 Apr 2006 09:09:26 -0400 (EDT) Sender: lowell@be-well.ilk.org To: fbsd@a1poweruser.com References: From: Lowell Gilbert Date: 28 Apr 2006 09:09:26 -0400 In-Reply-To: Message-ID: <44r73hu9rt.fsf@be-well.ilk.org> Lines: 40 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Getting DHCP to use resolv.conf? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 13:09:27 -0000 Don't top-post, please. "fbsd" 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 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.