2 dnl ### NSC -- BIND Config File Builder
3 dnl ### (c) 1997--2011 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 a forwarding zone
33 define(`FORWARDING', `divert(0)zone "$1" in {
36 forwarders { FORWard(shift($@),)};
44 define(`BLACKHOLE', `divert(0)zone "$1" in {
46 file "zone/blackhole";
53 define(`ROOTHINT', `divert(0)zone "." in {
60 # Manual insertion of config file material
62 define(`CONFIG', `divert(0)$1
65 # Setting domain options
67 define(`ZZ_OPTIONS', `')
69 define(`ZONE_OPTIONS', `define(`ZZ_OPTIONS', ifelse(`$1',`',`',`` $1''))')
75 `#' BIND configuration file
76 `#' Generated by NSCVER (mkconf.m4) on CURRENT_DATE
77 `#' Please don't edit manually