X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=m4%2Fmkconf.m4;h=927ea9e8f851feb659b2ec87cc1545db3f027c77;hb=9e0b4078816d410d3eb2ae4bad1f2bec332a8c95;hp=e5779217959d675eb42fbbc6e3d69522976e3206;hpb=72bcc050e870971579922f6db45449063188e501;p=nsc-5.git diff --git a/m4/mkconf.m4 b/m4/mkconf.m4 index e577921..927ea9e 100644 --- a/m4/mkconf.m4 +++ b/m4/mkconf.m4 @@ -1,6 +1,6 @@ dnl ### dnl ### NSC -- BIND Config File Builder -dnl ### (c) 1997--2006 Martin Mares +dnl ### (c) 1997--2011 Martin Mares dnl ### include(m4/dnslib.m4) @@ -28,15 +28,32 @@ ZZ_OPTIONS()dnl divert(-1)') -# Definition of forwarders for both normal and slave mode +# Definition of a forwarding zone -define(`FORWard', `patsubst(`$*',`,',`; ')') -define(`FORWArd', ` forward $1; +define(`FORWARDING', `divert(0)zone "$1" in { + type forward; + forward only; forwarders { FORWard(shift($@),)}; -') +ZZ_OPTIONS()dnl +}; + +divert(-1)') + +# Blackhole zones + +define(`BLACKHOLE', `divert(0)zone "$1" in { + type master; + file "zone/blackhole"; +}; + +divert(-1)') -define(`FORWARD', `FORWArd(first, $@)') -define(`SLAVE', `FORWArd(only, $@)') +# Root hint zone + +define(`ROOTHINT', `divert(0)zone "." in { + type hint; + file "ROOTCACHE"; +}; divert(-1)') @@ -60,15 +77,4 @@ divert(0)dnl `#' Please don't edit manually `#' -options { - directory "ROOT"; - interface-interval 0; -BIND_OPTIONS -}; - -zone "." in { - type hint; - file "ROOTCACHE"; -}; - divert(-1)