From f7471494ede4395e9892d4082585e5079615ecc7 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Thu, 24 Jan 2019 09:21:35 -0800 Subject: [PATCH] fix rpzrecurse test use rndc to stop servers --- bin/tests/system/rpzrecurse/ns4/named.conf.in | 9 +++++++++ bin/tests/system/rpzrecurse/tests.sh | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/rpzrecurse/ns4/named.conf.in b/bin/tests/system/rpzrecurse/ns4/named.conf.in index bcdbc97d60..47b4fd55ec 100644 --- a/bin/tests/system/rpzrecurse/ns4/named.conf.in +++ b/bin/tests/system/rpzrecurse/ns4/named.conf.in @@ -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"; }; diff --git a/bin/tests/system/rpzrecurse/tests.sh b/bin/tests/system/rpzrecurse/tests.sh index dfc10b7ccf..3c37535626 100644 --- a/bin/tests/system/rpzrecurse/tests.sh +++ b/bin/tests/system/rpzrecurse/tests.sh @@ -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