From owner-freebsd-net Mon Jun 1 15:39:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA27165 for freebsd-net-outgoing; Mon, 1 Jun 1998 15:39:53 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from obie.softweyr.com ([204.68.178.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA27138 for ; Mon, 1 Jun 1998 15:39:45 -0700 (PDT) (envelope-from wes@obie.softweyr.com) Received: (from wes@localhost) by obie.softweyr.com (8.8.8/8.8.8) id QAA26013; Mon, 1 Jun 1998 16:39:27 -0600 (MDT) (envelope-from wes) From: Wes Peters Message-Id: <199806012239.QAA26013@obie.softweyr.com> Subject: Re: Move a value from dhcp client on interface to dhcp server on othe r interface In-Reply-To: from "Pitcairn, Duncan" at "May 30, 98 12:00:18 pm" To: DuncanP@Cairnwood.com (Pitcairn, Duncan) Date: Mon, 1 Jun 1998 16:39:27 -0600 (MDT) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Does anyone have a script or instructions for moving the value for > domain-name-servers received by dhclient to a dhcpd.conf file? > > What I am working on is a FreeBSD 2.2.6 system with two network > interfaces. Interface 1 is connected to a Cable Modem through which it > receives dhcp client values, including doman-name-servers. Interface 2 > is conected to our network and it is running dhcpd. I need to move the > domain-name-server values from dhclient.leases (or from resolve.conf) > after dhclient runs but before dhcpd starts so that dhcpd can pass > domain-name-servers on to the clients on our network. A better idea would be to run a caching nameserver on your FreeBSD machine. If you run a traditional caching nameserver, you won't need to worry about the nameserver passed to you by the cable modem connection. If you want to modify the caching server to use the cable modem server as the 'upstream' connection, your cable modem DHCP client script would need to edit named.boot to edit the address you've just received into the 'forwarders' line, then (re)start the named server. In both cases, your dhcp server should advertise your FreeBSD machine as the DNS server to your clients. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.softweyr.com/~softweyr wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message