2 dnl ### NSC -- BIND Config File Builder
3 dnl ### (c) 1997--2006 Martin Mares <mj@ucw.cz>
7 # Definition of primary domains
9 define(`DO_PRIMARY', `divert(0)zone "$1" in {
11 file "ZONEDIR/nsc_file_name($2)";
17 define(`PRIMARY', `DO_PRIMARY($1,$1)')
18 define(`REVERSE', `DO_PRIMARY(REV($1),nsc_if_v6($1,`nsc_revblock6($1)',`nsc_revaddr($1)'))')
20 # Definition of secondary domain
22 define(`SECONDARY', `divert(0)zone "$1" in {
24 file "BAKDIR/nsc_file_name($1)";
31 # Definition of forwarders for both normal and slave mode
33 define(`FORWard', `patsubst(`$*',`,',`; ')')
34 define(`FORWArd', ` forward $1;
35 forwarders { FORWard(shift($@),)};
38 define(`FORWARD', `FORWArd(first, $@)')
39 define(`SLAVE', `FORWArd(only, $@)')
43 # Manual insertion of config file material
45 define(`CONFIG', `divert(0)$1
48 # Setting domain options
50 define(`ZZ_OPTIONS', `')
52 define(`ZONE_OPTIONS', `define(`ZZ_OPTIONS', ifelse(`$1',`',`',`` $1''))')
58 `#' BIND configuration file
59 `#' Generated by NSCVER (mkconf.m4) on CURRENT_DATE
60 `#' Please don't edit manually