]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Additional test in nsupdate test
authorMichael Sawyer <source@isc.org>
Mon, 24 Jul 2000 23:54:59 +0000 (23:54 +0000)
committerMichael Sawyer <source@isc.org>
Mon, 24 Jul 2000 23:54:59 +0000 (23:54 +0000)
bin/tests/system/nsupdate/ns1/named.conf
bin/tests/system/nsupdate/tests.sh

index a27abdadcd8849cc450a4a5c7bd49dc63326cd3a..a69c2c8b4c0117672b20ac12446e38e30a6291f0 100644 (file)
@@ -15,7 +15,7 @@
  * SOFTWARE.
  */
 
-/* $Id: named.conf,v 1.2 2000/07/24 22:53:38 mws Exp $ */
+/* $Id: named.conf,v 1.3 2000/07/24 23:54:59 mws Exp $ */
 
 options {
        query-source address 10.53.0.1;
@@ -39,4 +39,5 @@ zone "update.nil" {
        file "update.db";
        allow-update { any; };
        allow-transfer { any; };
+       also-notify { 10.53.0.2; };
 };
index e9a2b0870bbf9e395df7e0565ea4ec661564faad..7523bd60d4b31b93c8bad43fd47103c281921d2e 100644 (file)
@@ -15,7 +15,7 @@
 # ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 # SOFTWARE.
 
-# $Id: tests.sh,v 1.5 2000/07/24 22:53:35 mws Exp $
+# $Id: tests.sh,v 1.6 2000/07/24 23:54:57 mws Exp $
 
 #
 # Perform tests
@@ -64,5 +64,16 @@ else
     echo "I:The second part of this test requires the Net::DNS library." >&2
 fi
 
+echo "I:fetching first copy of test zone"
+$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example.nil.\
+       @10.53.0.1 axfr -p 5300 > dig.out.ns1 || status=1
+
+echo "I:fetching second copy of test zone"
+$DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example.nil.\
+       @10.53.0.1 axfr -p 5300 > dig.out.ns2 || status=1
+
+echo "I:comparing zones"
+$PERL ../digcomp.pl dig.out.ns1 dig.out.ns2 || status=1
+
 echo "I:exit status: $status"
 exit $status