]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
wait for zone to transfer
authorMark Andrews <marka@isc.org>
Sun, 23 Feb 2014 03:06:15 +0000 (14:06 +1100)
committerMark Andrews <marka@isc.org>
Sun, 23 Feb 2014 03:06:15 +0000 (14:06 +1100)
bin/tests/system/case/tests.sh

index 48c09d9bcc6ad81f78bcbda74f540d406e19b39c..2c08d16878471a53d934740322ed58ccc7f4d74f 100644 (file)
@@ -22,6 +22,15 @@ DIGOPTS="+tcp +nosea +nostat +noquest +nocomm +nocmd"
 status=0
 n=0
 
+n=`expr $n + 1`
+echo "I:waiting for zone transfer to complete ($n)"
+ret=0
+for i in 1 2 3 4 5 6 7 8 9
+do
+       $DIG $DIGOPTS soa example. @10.53.0.2 -p 5300 > dig.ns2.test$n
+       grep SOA dig.ns2.test$n > /dev/null && break
+done
+
 n=`expr $n + 1`
 echo "I:testing case preserving responses - no acl ($n)"
 ret=0