[K12OSN] Need help testing a different approach for the caching-nameserver-ltsp package

Christopher K. Johnson ckjohnson at gwi.net
Tue Jan 3 00:28:05 UTC 2006


Eric Harrison wrote:

>
> I think I have a graceful work-around for the conflicts between the
> latest named & caching-nameserver package updates and K12LTSP's
> caching-nameserver-ltsp package.
>
>
> Traditionaly, the caching-nameserver-ltsp package was a replacement
> for the caching-nameserver package. In my test package, I make the
> caching-nameserver-ltsp require the caching-nameserver and then
> include both sets of files into an alternate name.conf file:
>
> named is started with an alternate config file by adding
> OPTIONS="-c /etc/named-k12ltsp.conf" to /etc/sysconfig/named.
> /etc/named-k12ltsp.conf includes /etc/named.conf and the ltsp zones.
>
>
> There are two scenarios I have found where this breaks. One is
> that /etc/named.conf has been customized but still includes the
> ltsp zones. If the ltsp zones are included twice, named won't start.
> The second case is that an alternate config file was already
> specified in /etc/sysconfig/named. If such a customization was made,
> the caching-nameserver-ltsp package should not modify it.
>
> If either of these conditions are detected, the caching-nameserver-ltsp
> package skips adding OPTIONS="-c /etc/named-k12ltsp.conf" to 
> /etc/sysconfig/named.
>
>
> I would greatly appreciate help in reviewing and testing of this
> package on K12LTSP 4.4.1:
>
> ftp://k12linux.mesd.k12.or.us/pub/K12LTSP/testing/RPMS/caching-nameserver-ltsp-7.3-5.k12ltsp.4.4.2.noarch.rpm 
>
>
> -Eric

I see you do accommodate the case where someone has the bind-chroot rpm 
installed.
I noticed that ltsp.arpa has a duplicate entry for "1".

Have you considered having the postinstall script add
include "/etc/named-k12ltsp.conf";
at the end of named.conf if it does not already exist?  Kind of the 
reverse of your current implementation, but the relationship with 
k12ltsp zones would be more obvious, since people often edit named.conf, 
but overlook /etc/sysconfig/named.  Of course if you do so, the line
include "/etc/named.conf";
will need to be removed from named-k12ltsp.conf

When there is an OPTIONS= line already, but lacking double-quotes, with 
no prior -c option, addition of the alternate config fails quietly.

Otherwise it looks good!

Chris

-- 
   "Spend less!  Do more!  Go Open Source..." -- Dirigo.net
   Chris Johnson, RHCE #804005699817957




More information about the K12OSN mailing list