2 dnl ### NSC 2.0 -- BIND Config File Builder
3 dnl ### (c) 1997 Martin Mares <mj@gts.cz>
6 # Definition of primary domain
8 define(`PRIMARY', `divert(0)zone "$1" in {
15 # Definition of secondary domain
17 define(`SECONDARY', `divert(0)zone "$1" in {
25 # Definition of reverse domain
27 define(`REVERSE', `divert(0)zone "revaddr($1).in-addr.arpa" in {
29 file "ZONEDIR/revaddr($1)";
34 # Definition of reverse sub-domain
36 define(`PARTIAL', `SECONDARY(revaddr($1).in-addr.arpa,$3)')
37 define(`PREVERSE', `REVERSE($1)')
39 # Definition of forwarders for both normal and slave mode
41 define(`FORWard', `patsubst(`$@',`,',`; ')')
42 define(`FORWArd', `divert(0) forward $1;
43 forwarders { FORWard(shift($@),)};
46 define(`FORWARD', `FORWArd(first, $@)')
47 define(`SLAVE', `FORWArd(only, $@)')
51 # Manual insertion of config file material
53 define(`CONFIG', `divert(0)$1
58 define(`OPTIONS', `divert(0)options {
72 `#' Name server configuration file
73 `#' Generated by mkconf.m4 on curdate
74 `#' Please don't edit manually