]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix rpzrecurse test
authorEvan Hunt <each@isc.org>
Thu, 24 Jan 2019 17:21:35 +0000 (09:21 -0800)
committerEvan Hunt <each@isc.org>
Fri, 25 Jan 2019 19:24:11 +0000 (11:24 -0800)
use rndc to stop servers

bin/tests/system/rpzrecurse/ns4/named.conf.in
bin/tests/system/rpzrecurse/tests.sh

index 24e5115ae6436159bbd82d17f43d28bd0ae0792c..707b5778063ca3612427ad23223cd9f71a42f021 100644 (file)
@@ -23,4 +23,13 @@ options {
        recursion no;
 };
 
+key rndc_key {
+       secret "1234abcd8765";
+       algorithm hmac-sha256;
+};
+
+controls {
+       inet 10.53.0.4 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
+};
+
 zone "child.example.tld" { type master; file "child.example.db"; };
index e93c52fa4bafda5802354f6758325b2ecc06a113..948bff5c33a03a6dbf03d0138dbe4bb1babc86c5 100644 (file)
@@ -46,7 +46,7 @@ run_server() {
     TESTNAME=$1
 
     echo_i "stopping resolver"
-    $PERL $SYSTEMTESTTOP/stop.pl rpzrecurse ns2
+    $PERL $SYSTEMTESTTOP/stop.pl --use-rndc --port ${CONTROLPORT} rpzrecurse ns2
 
     sleep 1
 
@@ -122,7 +122,7 @@ for mode in native dnsrps; do
       continue
     fi
     echo_i "attempting to configure servers with DNSRPS..."
-    $PERL $SYSTEMTESTTOP/stop.pl rpzrecurse
+    $PERL $SYSTEMTESTTOP/stop.pl --use-rndc --port ${CONTROLPORT} rpzrecurse
     $SHELL ./setup.sh -N -D $DEBUG
     sed -n 's/^## //p' dnsrps.conf | cat_i
     if grep '^#fail' dnsrps.conf >/dev/null; then