Date: 07 Mar 2003 20:55:41 -0500 From: Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com> To: freebsd-questions@freebsd.org Cc: Philip Hallstrom <philip@adhesivemedia.com> Subject: Re: DHCP Server "learning" name servers since server itself is dhcp'd?? Message-ID: <44d6l2ipuq.fsf@be-well.ilk.org> In-Reply-To: <20030307164105.O18721@tigger.alkinetworks.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
Philip Hallstrom <philip@adhesivemedia.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44d6l2ipuq.fsf>