mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Test that 'rndc reconfig' reconfigures catz member zones
Catalog zone member zones should be reconfigured as all the other zones during a reconfiguration. Test it by checking whether the newly added allow-query setting affects a member zone. (cherry picked from commit cd04b89dba85781c194f22ce6fe358c972a14758)
This commit is contained in:
parent
13ec0fa27a
commit
565731ceea
2 changed files with 18 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ options {
|
|||
listen-on-v6 { fd92:7065:b8e:ffff::2; };
|
||||
notify no;
|
||||
recursion no;
|
||||
#T5 allow-query { 10.53.0.99; };
|
||||
serial-query-rate 100;
|
||||
dnssec-validation no;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -703,6 +703,23 @@ wait_for_soa @10.53.0.2 dom3.example. dig.out.test$n || ret=1
|
|||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
|
||||
# GL #4733
|
||||
n=$((n + 1))
|
||||
echo_i "reconfiguring secondary - checking if catz member zones are reconfigured ($n)"
|
||||
ret=0
|
||||
sed -e "s/^#T5//" <ns2/named1.conf.in >ns2/named.conf.tmp
|
||||
copy_setports ns2/named.conf.tmp ns2/named.conf
|
||||
rndccmd 10.53.0.2 reconfig || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
|
||||
n=$((n + 1))
|
||||
echo_i "checking that dom3.example. is refused by secondary because of an activated allow-query ($n)"
|
||||
ret=0
|
||||
wait_for_no_soa @10.53.0.2 dom3.example. dig.out.test$n || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
|
||||
n=$((n + 1))
|
||||
echo_i "reconfiguring secondary - reverting the bad configuration ($n)"
|
||||
ret=0
|
||||
|
|
|
|||
Loading…
Reference in a new issue