]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
allow "forward" and "forwarders" in static-stub
authorEvan Hunt <each@isc.org>
Wed, 15 Aug 2012 20:08:15 +0000 (13:08 -0700)
committerEvan Hunt <each@isc.org>
Wed, 15 Aug 2012 20:08:15 +0000 (13:08 -0700)
3363. [bug] Need to allow "forward" and "fowarders" options
in static-stub zones; this had been overlooked.
[RT #30482]

CHANGES
bin/tests/system/checkconf/good.conf
lib/bind9/check.c

diff --git a/CHANGES b/CHANGES
index 829bb8dd552c32e68fa69f2a9c030d3fbec1035a..e26dda0fa28cbb5dc3e0a49f6a9f433c620460ac 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+3363.  [bug]           Need to allow "forward" and "fowarders" options
+                       in static-stub zones; this had been overlooked.
+                       [RT #30482]
+
 3362.  [bug]           Setting some option values to 0 in named.conf
                        could trigger an assertion failure on startup.
                        [RT #27730]
index 711da3e8595a2c9dfe1478926f012f239847422e..ffa1428aac55ef99806a87fab06b5645d94092d2 100644 (file)
@@ -88,6 +88,13 @@ view "second" {
                file "yyy";
                update-policy local;
        };
+       zone "example2" {
+               type static-stub;
+               forward only;
+               forwarders {
+                       10.53.0.4;
+               };
+       };
        dnssec-lookaside "." trust-anchor "dlv.isc.org.";
        dnssec-validation auto;
 };
index 277e9b3a1b7241b020309d1d8f53221c31d23be6..e16c21d06a34297bacdb0aac3c5e8833335ac322 100644 (file)
@@ -1347,8 +1347,10 @@ check_zoneconf(const cfg_obj_t *zconfig, const cfg_obj_t *voptions,
        { "also-notify", MASTERZONE | SLAVEZONE },
        { "dialup", MASTERZONE | SLAVEZONE | STUBZONE | STREDIRECTZONE },
        { "delegation-only", HINTZONE | STUBZONE | DELEGATIONZONE },
-       { "forward", MASTERZONE | SLAVEZONE | STUBZONE | FORWARDZONE },
-       { "forwarders", MASTERZONE | SLAVEZONE | STUBZONE | FORWARDZONE },
+       { "forward", MASTERZONE | SLAVEZONE | STUBZONE |
+         STATICSTUBZONE | FORWARDZONE },
+       { "forwarders", MASTERZONE | SLAVEZONE | STUBZONE |
+         STATICSTUBZONE | FORWARDZONE },
        { "maintain-ixfr-base", MASTERZONE | SLAVEZONE | STREDIRECTZONE },
        { "max-ixfr-log-size", MASTERZONE | SLAVEZONE | STREDIRECTZONE },
        { "notify-source", MASTERZONE | SLAVEZONE },