Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Dec 2007 14:07:00 +0300
From:      Eygene Ryabinkin <rea-fbsd@codelabs.ru>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        freebsd-current@freebsd.org
Subject:   Re: [RFC] Automated generation of /etc/resolv.conf from the rc.d script
Message-ID:  <MIKiw94aov2StL37zxYPU2cwfyE@NKorCT8tqQREs5VbYbldlgOz9%2B8>
In-Reply-To: <72389.1197629858@critter.freebsd.dk>
References:  <dEZnki0Fi32EvMrDEnqcgDeNQSc@Bbw9J2Iynx0QjNoWuQ4YSitYS3A> <72389.1197629858@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
Fri, Dec 14, 2007 at 10:57:38AM +0000, Poul-Henning Kamp wrote:
> In message <dEZnki0Fi32EvMrDEnqcgDeNQSc@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MIKiw94aov2StL37zxYPU2cwfyE>