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

From: Nikolay Pavlov <qpadla_at_gmail.com>
Date: Fri, 14 Dec 2007 20:39:07 +0200
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_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!

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 
named.conf.

-- 
======================================================================  
- Best regards, Nikolay Pavlov. <<<-----------------------------------    
======================================================================  


Received on Fri Dec 14 2007 - 17:39:16 UTC

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