use a test key

This commit is contained in:
Mark Andrews
2015-11-12 10:54:59 +11:00
parent 4949f39716
commit d0afc2d1c4
2 changed files with 9 additions and 4 deletions

View File

@@ -24,8 +24,13 @@ options {
recursion no;
};
key rndc_key {
secret "1234abcd8765";
algorithm hmac-sha256;
};
controls {
inet 10.53.0.5 port 9953 allow { any; } read-only yes;
inet 10.53.0.5 port 9953 allow { any; } keys { rndc_key; } read-only yes;
};
zone "." {

View File

@@ -435,9 +435,9 @@ status=`expr $status + $ret`
echo "I:test read-only control channel access"
ret=0
$RNDC -s 10.53.0.5 -p 9953 status > /dev/null 2>&1 || ret=1
$RNDC -s 10.53.0.5 -p 9953 nta -dump > /dev/null 2>&1 || ret=1
$RNDC -s 10.53.0.5 -p 9953 reconfig > /dev/null 2>&1 && ret=1
$RNDC -s 10.53.0.5 -p 9953 -c ../common/rndc.conf status > /dev/null 2>&1 || ret=1
$RNDC -s 10.53.0.5 -p 9953 -c ../common/rndc.conf nta -dump > /dev/null 2>&1 || ret=1
$RNDC -s 10.53.0.5 -p 9953 -c ../common/rndc.conf reconfig > /dev/null 2>&1 && ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`