Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 2008 18:36:17 +0400
From:      Eygene Ryabinkin <rea-fbsd@codelabs.ru>
To:        Brooks Davis <brooks@freebsd.org>, Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        Zaphod Beeblebrox <zbeeble@gmail.com>, freebsd-current@freebsd.org
Subject:   Re: [RFC] Automated generation of /etc/resolv.conf from the rc.d script
Message-ID:  <+rkPaEJgDwWM+WmNdLneOfPN6Ps@sTlCVUsSEVReKIVdz1gJKNXWeKE>
In-Reply-To: <12763.1208898696@critter.freebsd.dk> <20080422204510.GB34198@lor.one-eyed-alien.net>
References:  <72123.1197626129@critter.freebsd.dk> <dEZnki0Fi32EvMrDEnqcgDeNQSc@Bbw9J2Iynx0QjNoWuQ4YSitYS3A> <5f67a8c40804141026s27672065sb11a7f327572c0f2@mail.gmail.com> <H5MGge8Nl5z81vYo/6CbS41wm2w@BBB3ZKOzjjN0cxeKaWhgH87x7VY> <5f67a8c40804141044v69557b92w7db0b272d6b9b848@mail.gmail.com> <3BdnONI1bT08mgV1Is+vnPQaMNw@OG4t+/sM8WGI7cjjTW4/N4fcF6w> <bQ7Kv28g8j5/M0RtG5zJuY9QcZY@eQI4H8/UJdAjemYIic++kxoAYfE> <20080421162612.GA19629@lor.one-eyed-alien.net> <zelmr/+4w7jJ6i0JlwWDAK5xDxU@EEu6nkWAZTlxOp7ENdKMY8AImHg> <20080422204510.GB34198@lor.one-eyed-alien.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Brooks, Poul-Henning, good day.

> This looks like useful functionality to me.  I have't had time to dig in
> in detail.  Could you please submit it as a PR so it doesn't get lost?

OK, will do.

Tue, Apr 22, 2008 at 09:11:36PM +0000, Poul-Henning Kamp wrote:
> >By the way, do you have some thoughts about the patches I had sent?
> >Or you just don't need such functionality?  I am not receiving any
> >comments, so does it mean that these patches are unneeded?  Anyone?
> >Poul-Henning?
> 
> I think this is a much needed facility.  Some ISP's block DNS queries
> from private customers to force them to use the ISP's DNS and
> not having this forces a cumbersome manual configuration.

Hmm, my patch does not change anything in the respect to the ISP's
DNS servers: resolv.conf or BIND will use the nameservers given by
DHCP or manually configured via /etc/rc.conf.  For the DHCP case
this coincides with the current behaviour: dhclient creates
/etc/resolv.conf with the obtained DNS servers.  But sure, the
case of a local BIND instance is not covered by the current
configuration, but is handled in the patch.


To summarize, the useful functionality, as I see it, is the following.

a) One can build /etc/resolv.conf programmatically via variables
   in rc.conf; I am using it to implement multiple configurations
   for my notebooks.

b) One can have local BIND instance caching the answers from the
   upstream forwarders and it is automatically (re)configured by
   DHCP or /etc/rc.conf when upstream DNS servers list is changed.
   Very handy when you're sitting on the lossy link, having temporary
   connectivity problems and is generally saving some DNS-related
   traffic.

Thanks for your opinions!
-- 
Eygene



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?+rkPaEJgDwWM+WmNdLneOfPN6Ps>