From owner-freebsd-net Sat May 30 23:04:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA09758 for freebsd-net-outgoing; Sat, 30 May 1998 23:04:53 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from seifried-gateway.v-wave.com (seifried-gateway.v-wave.com [24.108.11.202]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA09684 for ; Sat, 30 May 1998 23:04:30 -0700 (PDT) (envelope-from listuser@seifried-gateway.v-wave.com) Received: from localhost (listuser@localhost) by seifried-gateway.v-wave.com (8.8.8/8.8.8) with SMTP id AAA08524; Sun, 31 May 1998 00:04:53 -0600 Date: Sun, 31 May 1998 00:04:53 -0600 (MDT) From: To: "Pitcairn, Duncan" cc: "'dhcp-client@fugue.com'" , "'freebsd-net@freebsd.org'" , "'dhcp-client@fugue.com'" Subject: Re: Move a value from dhcp client on interface to dhcp server on othe r interface In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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. In Linux it writes the DNS info to /etc/resolv.conf: domain blah.com nameserver 2.2.2.2 nameserver 2.3.3.2 etc...... I would imagine you could write a script that would start the client dhcp up, attach to the cablemodem, get the info, you're now on the network, then strip the needed info from resolv.conf (or bsd equiv) and write it to the dhcpd.conf file. To bad you cannot specify the dhcp server to pass part of the dhcp requests 'upstream'. ie: subnet 10.0.0.0 netmask 255.255.0.0 { range 10.0.0.210 10.0.0.250; option domain-name-servers pass-dhcp-request-out-eth0 option domain-name pass-dhcp-request-out-eth0 } or something nifty like that. Anyone wanna write a new rfc? ;) -seifried To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message