2 dnl ### NSC -- BIND Config File Builder
3 dnl ### (c) 1997--2003 Martin Mares <mj@ucw.cz>
7 # Definition of primary domains
9 define(`DO_PRIMARY', `divert(0)zone "$1" in {
16 define(`PRIMARY', `DO_PRIMARY($1,$1)')
17 define(`REVERSE', `DO_PRIMARY(REV($1),nsc_if_v6($1,`nsc_revblock6($1)',`nsc_revaddr($1)'))')
19 # Definition of secondary domain
21 define(`SECONDARY', `divert(0)zone "$1" in {
29 # Definition of forwarders for both normal and slave mode
31 define(`FORWard', `patsubst(`$@',`,',`; ')')
32 define(`FORWArd', `divert(0) forward $1;
33 forwarders { FORWard(shift($@),)};
36 define(`FORWARD', `FORWArd(first, $@)')
37 define(`SLAVE', `FORWArd(only, $@)')
41 # Manual insertion of config file material
43 define(`CONFIG', `divert(0)$1
50 `#' BIND configuration file
51 `#' Generated by NSCVER (mkconf.m4) on CURRENT_DATE
52 `#' Please don't edit manually