mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Test restart works after rndc modzone
When a zone that is configured in named.conf is modified with 'rndc modzone', the new zone configuration is now also stored in the NZD. Add a test to ensure that after a restart, the old zone configuration is used.
This commit is contained in:
parent
98784ed753
commit
b8e16cf1cb
1 changed files with 12 additions and 0 deletions
|
|
@ -474,6 +474,18 @@ n=$((n + 1))
|
|||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
|
||||
echo_i "check that named restarts with previously deleted normal.example zone ($n)"
|
||||
ret=0
|
||||
stop_server ns2
|
||||
start_server --noclean --restart --port ${PORT} ns2 || ret=1
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.2 showzone normal.example >rndc.out.ns2.$n
|
||||
expected='zone "normal.example" { type primary; file "normal.db"; };'
|
||||
[ "$(cat rndc.out.ns2.$n)" = "$expected" ] || ret=1
|
||||
n=$((n + 1))
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
|
||||
echo_i "reconfiguring server with multiple views"
|
||||
cp ns2/named2.conf ns2/named.conf
|
||||
rndc_reconfig ns2 10.53.0.2
|
||||
|
|
|
|||
Loading…
Reference in a new issue