Philip Hallstrom <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to