Re: [RFC] Automated generation of /etc/resolv.conf from the rc.d script

From: Eygene Ryabinkin <rea-fbsd_at_codelabs.ru>
Date: Fri, 14 Dec 2007 14:07:00 +0300
Fri, Dec 14, 2007 at 10:57:38AM +0000, Poul-Henning Kamp wrote:
> In message <dEZnki0Fi32EvMrDEnqcgDeNQSc_at_Bbw9J2Iynx0QjNoWuQ4YSitYS3A>, Eygene Ryabinkin writes:
> >> It should be possible to run a local named even when we run DHCP,
> >> and it shuld be an option, to have it automatically forward to the
> >> DNS servers we learn from DHCP.
> >
> >This can be achieved with the script /etc/dhclient-exit-hooks that
> >will create the file with named 'forwarders' clause [...]
> 
> Yes, I know that, but I would like to see it controllable from rc.conf
> like the rest of our network configuration.

OK, since running local DNS instance is a neat idea, I will try to
draft the modifications for the dhclient-exit-hooks, as I described
in the previous mail.

Just now I see no other way to implement it, because dhclient is
asynchronious in the general case, so I can not teach /etc/rc.d/dhclient
to do the job.  So I expect that /etc/dhclient-exit-hooks will be
born and it will build 'forwarders' file for the named, if this
will be requested by /etc/rc.conf.

I still not sure how to modify named.conf: automatically or let the
user make the needed modifications.  I am inclined to the latter,
but this can pose some troubles to the users that are not very
familiar with named.conf.  Any thoughts?

If you have other ideas how it can be done, please share.

Thanks!
-- 
Eygene
Received on Fri Dec 14 2007 - 10:07:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:24 UTC