dnl ###
dnl ### NSC -- BIND Config File Builder
-dnl ### (c) 1997--2006 Martin Mares <mj@ucw.cz>
+dnl ### (c) 1997--2011 Martin Mares <mj@ucw.cz>
dnl ###
include(m4/dnslib.m4)
divert(-1)')
-# Definition of forwarders for both normal and slave mode
-
-define(`FORWard', `patsubst(`$*',`,',`; ')')
-define(`FORWArd', ` forward $1;
- forwarders { FORWard(shift($@),)};
-')
-
-define(`FORWARD', `FORWArd(first, $@)')
-define(`SLAVE', `FORWArd(only, $@)')
-
-divert(-1)')
-
# Definition of a forwarding zone
define(`FORWARDING', `divert(0)zone "$1" in {
divert(-1)')
+# Blackhole zones
+
+define(`BLACKHOLE', `divert(0)zone "$1" in {
+ type master;
+ file "zone/blackhole";
+};
+
+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
`#' Please don't edit manually
`#'
-options {
- directory "ROOT";
- interface-interval 0;
-BIND_OPTIONS
-};
-
-zone "." in {
- type hint;
- file "ROOTCACHE";
-};
-
divert(-1)