Hi,

while playing around with some zone file generator/update scripts,
I noticed that we're missing BINDs named-compilezone(8).

named-compilezone is normally just a symlink to named-checkzone
and if executed with this name, some defaults get changed:

"named-compilezone is similar to named-checkzone, but it always dumps
the zone contents to a specified file in a specified format.
Additionally, it applies stricter check levels by default, since the
dump output will be used as an actual zone file loaded by named. When
manually specified otherwise, the check levels must at least be as
strict as those specified in the named configuration file."

It is referenced in our named-checkzone manpage and has been around
since BIND 9.4.0 according to usr.sbin/bind/README.

Is there a specific reason why this isn't included?

I don't know if my patch is the correct way to do this,
but it does the trick.
-- 
Simon

Index: Makefile.bsd-wrapper
===================================================================
RCS file: /cvs/src/usr.sbin/bind/Makefile.bsd-wrapper,v
retrieving revision 1.12
diff -u -r1.12 Makefile.bsd-wrapper
--- Makefile.bsd-wrapper        9 Dec 2007 13:39:42 -0000       1.12
+++ Makefile.bsd-wrapper        24 Jan 2011 19:59:32 -0000
@@ -47,6 +47,8 @@
        doc/arm/Bv9ARM.ch08.html \
        doc/arm/Bv9ARM.ch09.html
 
+MLINKS= named-checkzone.8 named-compilezone.8
+
 BINDIR=                /usr/sbin
 HTMLDIR=       /usr/share/doc/html/bind
 
@@ -87,6 +89,8 @@
        -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
        ${file} ${DESTDIR}${BINDIR}
 .endfor
+       ln -sf ${DESTDIR}${BINDIR}/named-checkzone \
+       ${DESTDIR}${BINDIR}/named-compilezone
 
 BEFOREMAN= config.status

Reply via email to