Commit d0afc2d1 authored by Mark Andrews's avatar Mark Andrews
Browse files

use a test key

parent 4949f397
...@@ -24,8 +24,13 @@ options { ...@@ -24,8 +24,13 @@ options {
recursion no; recursion no;
}; };
key rndc_key {
secret "1234abcd8765";
algorithm hmac-sha256;
};
controls { 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 "." { zone "." {
......
...@@ -435,9 +435,9 @@ status=`expr $status + $ret` ...@@ -435,9 +435,9 @@ status=`expr $status + $ret`
echo "I:test read-only control channel access" echo "I:test read-only control channel access"
ret=0 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 -c ../common/rndc.conf 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 -c ../common/rndc.conf 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 reconfig > /dev/null 2>&1 && ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret` status=`expr $status + $ret`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment