Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Dec 2007 20:39:07 +0200
From:      Nikolay Pavlov <qpadla@gmail.com>
To:        freebsd-current@freebsd.org
Cc:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Subject:   Re: [RFC] Automated generation of /etc/resolv.conf from the rc.d script
Message-ID:  <200712142039.07590.qpadla@gmail.com>
In-Reply-To: <MIKiw94aov2StL37zxYPU2cwfyE@NKorCT8tqQREs5VbYbldlgOz9%2B8>
References:  <dEZnki0Fi32EvMrDEnqcgDeNQSc@Bbw9J2Iynx0QjNoWuQ4YSitYS3A> <72389.1197629858@critter.freebsd.dk> <MIKiw94aov2StL37zxYPU2cwfyE@NKorCT8tqQREs5VbYbldlgOz9%2B8>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart4613370.M3EtAJ3uH5
Content-Type: text/plain;
  charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Friday 14 December 2007 13:07:00 Eygene Ryabinkin wrote:
> Fri, Dec 14, 2007 at 10:57:38AM +0000, Poul-Henning Kamp wrote:
> > In message <dEZnki0Fi32EvMrDEnqcgDeNQSc@Bbw9J2Iynx0QjNoWuQ4YSitYS3A>,=20
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!

Hi Eygene. You might get some ideas from this implementation then:
http://packages.debian.org/sid/resolvconf
At least it contains those ugly sed expression to edit forwarders in a=20
named.conf.

=2D-=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20
=2D Best regards, Nikolay Pavlov. <<<-----------------------------------   =
=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20


--nextPart4613370.M3EtAJ3uH5
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBHYs3L/2R6KvEYGaIRAlodAKCsSqxJredmVMMfMSH+55I5untrwgCePciL
aPHcI0rNXxJfzhI31Dw8N8Y=
=uwjR
-----END PGP SIGNATURE-----

--nextPart4613370.M3EtAJ3uH5--



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