From owner-freebsd-questions Fri Mar 7 17:55:45 2003 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 88DE137B401 for ; Fri, 7 Mar 2003 17:55:44 -0800 (PST) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E9BB43F93 for ; Fri, 7 Mar 2003 17:55:43 -0800 (PST) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com[24.147.188.198]) by sccrmhc02.attbi.com (sccrmhc02) with ESMTP id <200303080155420020081bqve>; Sat, 8 Mar 2003 01:55:42 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.8/8.12.7) with ESMTP id h281tgBc047522; Fri, 7 Mar 2003 20:55:42 -0500 (EST) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.8/8.12.6/Submit) id h281tfEW047519; Fri, 7 Mar 2003 20:55:41 -0500 (EST) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f To: freebsd-questions@freebsd.org Cc: Philip Hallstrom Subject: Re: DHCP Server "learning" name servers since server itself is dhcp'd?? References: <200303071155.43785.damien@tougas.net> <200303071807.27524.taxman@acd.net> <20030307231822.GB1340@zi025.glhnet.mhn.de> <200303071938.53505.taxman@acd.net> <20030307164105.O18721@tigger.alkinetworks.com> From: Lowell Gilbert Date: 07 Mar 2003 20:55:41 -0500 In-Reply-To: <20030307164105.O18721@tigger.alkinetworks.com> Message-ID: <44d6l2ipuq.fsf@be-well.ilk.org> Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Philip Hallstrom writes: > Hi all - > I'm setting up a server/gateway on a cable modem whose external > interface has to use DHCP. There will be several clients on the internal > network and the gateway will be running isc-dhcp. > > I know I can setup a nameserver on the gateway and configure DHCP to send > it's own IP as the nameserver to use, but I was wondering if there is a > way to have the dhcp server get the name server values from say > /etc/resolv.conf? You should be able to do that by writing a dhclient hook (see the manual for dhclient-script(8) for info), but I don't have a recipe at hand, as I've long since gone to running my own nameserver for other reasons. > Alternatively is there a way to dynamically tell BIND to get it's > forwarders list from /etc/resolv.conf? This could be done pretty much the same way. I thought I'd done it on my system, but as I look at named.conf, I don't seem to have ever finished the shell script to auto-generate the named.conf file. Bind 8 doesn't have a sufficiently powerful include mechanism to do this neatly. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message