]> 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 08:44:11 +0000 (00:44 -0800)
use rndc to stop servers

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

index bcdbc97d6025d186524fbc52cda865ec5e40d327..47b4fd55ec770e532157ffb6578064a96f7f87b4 100644 (file)
@@ -24,4 +24,13 @@ options {
        dnssec-validation 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 dfc10b7ccf5b4698924b975865c7e22cbe108fbf..3c37535626ba4537579166ce4af0aa5177b392b6 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