Date: Sun, 31 May 1998 00:04:53 -0600 (MDT) From: <listuser@seifried.org> To: "Pitcairn, Duncan" <DuncanP@Cairnwood.com> Cc: "'dhcp-client@fugue.com'" <dhcp-client@fugue.com>, "'freebsd-net@freebsd.org'" <freebsd-net@FreeBSD.ORG>, "'dhcp-client@fugue.com'" <dhcp-client@fugue.com> Subject: Re: Move a value from dhcp client on interface to dhcp server on othe r interface Message-ID: <Pine.LNX.3.96.980531000036.8489A-100000@seifried-gateway.v-wave.com> In-Reply-To: <DD95A52544D0D01198C300608CCC29B9322EE2@Southampton.Cairnwood.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.96.980531000036.8489A-100000>