]> mj.ucw.cz Git - nsc-5.git/blobdiff - m4/mkconf.m4
README: Fix section numbering
[nsc-5.git] / m4 / mkconf.m4
index 927ea9e8f851feb659b2ec87cc1545db3f027c77..2c3681ce29740f2df025675b0228ca3d85508a9a 100644 (file)
@@ -8,7 +8,7 @@ include(m4/dnslib.m4)
 
 define(`DO_PRIMARY', `divert(0)zone "$1" in {
        type master;
-       file "ZONEDIR/nsc_file_name($2)";
+       file "zone/nsc_file_name($2)";
 ZZ_OPTIONS()dnl
 };
 
@@ -21,7 +21,7 @@ define(`REVERSE', `DO_PRIMARY(REV($1),nsc_if_v6($1,`nsc_revblock6($1)',`nsc_reva
 
 define(`SECONDARY', `divert(0)zone "$1" in {
        type slave;
-       file "BAKDIR/nsc_file_name($1)";
+       file "bak/nsc_file_name($1)";
        masters { $2; };
 ZZ_OPTIONS()dnl
 };
@@ -39,6 +39,8 @@ ZZ_OPTIONS()dnl
 
 divert(-1)')
 
+define(`FORWard', `patsubst(`$*',`,',`; ')')
+
 # Blackhole zones
 
 define(`BLACKHOLE', `divert(0)zone "$1" in {
@@ -48,15 +50,6 @@ define(`BLACKHOLE', `divert(0)zone "$1" in {
 
 divert(-1)')
 
-# Root hint zone
-
-define(`ROOTHINT', `divert(0)zone "." in {
-       type hint;
-       file "ROOTCACHE";
-};
-
-divert(-1)')
-
 # Manual insertion of config file material
 
 define(`CONFIG', `divert(0)$1