|
@@ -51,12 +51,12 @@ set -e
|
|
|
|
|
|
# Store the SOA serial number of the BIND 10 client for later use.
|
|
|
old_client_serial=`$DIG_SOA @$CLIENT_IP | $AWK '{print $3}'`
|
|
|
-echo "I:SOA serial of IXFR client $CLIENT_NAME is $old_client_serial"
|
|
|
+echo "I:$CLIENT_NAME SOA serial of IXFR client is $old_client_serial"
|
|
|
|
|
|
# Load the BIND 9 system (the IXFR server) with the "n - 2" and "n" version of
|
|
|
# the zones. With ixfr-from-differences set to "yes", the nameserver should
|
|
|
# generate the differences between them.
|
|
|
-echo "I:updating IXFR-server $SERVER_NAME for ixfr-in tests"
|
|
|
+echo "I:$SERVER_NAME updating IXFR-server for ixfr-in tests"
|
|
|
update_server_zone $SERVER_NAME $SERVER_IP $IXFR_TOP/db.example.n2
|
|
|
|
|
|
# Wait a bit - it seems that if two updates are loaded in quick succession,
|
|
@@ -64,16 +64,10 @@ update_server_zone $SERVER_NAME $SERVER_IP $IXFR_TOP/db.example.n2
|
|
|
sleep 5
|
|
|
update_server_zone $SERVER_NAME $SERVER_IP $IXFR_TOP/db.example.n0
|
|
|
|
|
|
-# TODO: Need to alter configuration of BIND 10 server such that it accepts
|
|
|
-# NOTIFYs from and sends IXFR requests to the BIND 9 master.
|
|
|
-
|
|
|
-# If required, get the IXFR server to notify the slave server of the new zone.
|
|
|
-# Do this by allowing notifies and then triggering a re-notification of the
|
|
|
-# server.
|
|
|
-echo "I:notifying IXFR-client $CLIENT_NAME of presence of new version of zone"
|
|
|
-cp $IXFR_TOP/named_notify.conf ns1/named.conf
|
|
|
-do_rndc $SERVER_NAME $SERVER_IP reconfig
|
|
|
-do_rndc $SERVER_NAME $SERVER_IP notify example
|
|
|
+echo "I:$CLIENT_NAME forcing IXFR client to retrieve new version of the zone"
|
|
|
+$RUN_BINDCTL << .
|
|
|
+Xfrin retransfer zone_name="example"
|
|
|
+.
|
|
|
|
|
|
# Wait for the client to update itself.
|
|
|
wait_for_update $CLIENT_NAME $CLIENT_IP $old_client_serial
|
|
@@ -81,3 +75,5 @@ wait_for_update $CLIENT_NAME $CLIENT_IP $old_client_serial
|
|
|
# Has updated, compare the client and server's versions of the zone s- they
|
|
|
# should be the same.
|
|
|
compare_zones $SERVER_NAME $SERVER_IP $CLIENT_NAME $CLIENT_IP
|
|
|
+
|
|
|
+set +e
|