mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
fix rpzrecurse test
use rndc to stop servers
This commit is contained in:
parent
8778f484b3
commit
f7471494ed
2 changed files with 11 additions and 2 deletions
|
|
@ -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"; };
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue