From b09544a247701516325cd805bd3cc8d28a058fec Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 16 Oct 2011 20:09:26 +0200 Subject: [PATCH] Do not generate BIND options any longer --- NEWS | 5 +++++ README | 8 -------- m4/dnslib.m4 | 2 -- m4/mkconf.m4 | 18 ------------------ 4 files changed, 5 insertions(+), 28 deletions(-) diff --git a/NEWS b/NEWS index 23ddb69..8062980 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,11 @@ o Added FORWARDING macro for generating forward-only zones. o Added BLACKHOLE macro for blackhole zones as per RFC 6303. Blackhole zones in example cf/domains updated to use this macro. + o Given that BIND does not support combination of options { } + sections, we do not generate them any longer -- write the + appropriate options to BIND config file and include the part + with the list of zones generated by NSC from there. This means + that BIND_OPTIONS, FORWARD and SLAVE are gone. Version 3.1 [21-05-2008] diff --git a/README b/README index 776108e..6ddfb09 100644 --- a/README +++ b/README @@ -331,20 +331,12 @@ MINTTL NSNAME Origin server (default: hostname of your machine) MAINTNAME Domain maintainer name (default: root@NSNAME) -BIND_OPTIONS Extra options to put to the options { ... } section of named.conf - For the timing parameters, the following shortcuts are available: HOURS(n) Convert hours to seconds MINUTES(n) Convert minutes to seconds DAYS(n) Convert days to seconds -For the BIND_OPTIONS, we offer: - -FORWARD(ip...) Try to ask the given name servers first to see if they - have the reply cached. -SLAVE(ip...) Pass all non-local requests to the given name servers. - 5. Makefile targets ~~~~~~~~~~~~~~~~~~~ diff --git a/m4/dnslib.m4 b/m4/dnslib.m4 index 3e796a3..f6fc63c 100644 --- a/m4/dnslib.m4 +++ b/m4/dnslib.m4 @@ -87,8 +87,6 @@ define(`nsc_fatal_error', `errprint(`NSC error: $1 define(`NAMED_RESTART_CMD', `ndc reload') -define(`BIND_OPTIONS', ` # Other options can be added here via macro `BIND_OPTIONS'') - define(`ROOT', `/etc/named') define(`CFDIR', `cf') define(`ZONEDIR', `zone') diff --git a/m4/mkconf.m4 b/m4/mkconf.m4 index 7cbde76..8392b4d 100644 --- a/m4/mkconf.m4 +++ b/m4/mkconf.m4 @@ -28,18 +28,6 @@ ZZ_OPTIONS()dnl 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 { @@ -80,12 +68,6 @@ divert(0)dnl `#' Please don't edit manually `#' -options { - directory "ROOT"; - interface-interval 0; -BIND_OPTIONS -}; - zone "." in { type hint; file "ROOTCACHE"; -- 2.39.2