[master] "in-view" zone option
3673. [func] New "in-view" zone option allows direct sharing of zones between views. [RT #32968]
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (C) 2004, 2007, 2012 Internet Systems Consortium, Inc. ("ISC")
|
||||
# Copyright (C) 2004, 2007, 2012, 2013 Internet Systems Consortium, Inc. ("ISC")
|
||||
# Copyright (C) 2000, 2001 Internet Software Consortium.
|
||||
#
|
||||
# Permission to use, copy, modify, and/or distribute this software for any
|
||||
@@ -79,5 +79,47 @@ then
|
||||
status=1
|
||||
fi
|
||||
|
||||
echo "I:updating cloned zone in internal view"
|
||||
$NSUPDATE << EOF
|
||||
server 10.53.0.2 5300
|
||||
zone clone
|
||||
update add b.clone. 300 in a 10.1.0.3
|
||||
send
|
||||
EOF
|
||||
echo "I:sleeping to allow update to take effect"
|
||||
sleep 5
|
||||
|
||||
echo "I:verifying update affected both views"
|
||||
ret=0
|
||||
one=`$DIG +tcp +short -p 5300 -b 10.53.0.2 @10.53.0.2 b.clone a`
|
||||
two=`$DIG +tcp +short -p 5300 -b 10.53.0.4 @10.53.0.2 b.clone a`
|
||||
if [ "$one" != "$two" ]; then
|
||||
echo "'$one' does not match '$two'"
|
||||
ret=1
|
||||
fi
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:verifying forwarder in cloned zone works"
|
||||
ret=0
|
||||
one=`$DIG +tcp +short -p 5300 -b 10.53.0.2 @10.53.0.2 child.clone txt`
|
||||
two=`$DIG +tcp +short -p 5300 -b 10.53.0.4 @10.53.0.2 child.clone txt`
|
||||
three=`$DIG +tcp +short -p 5300 @10.53.0.3 child.clone txt`
|
||||
four=`$DIG +tcp +short -p 5300 @10.53.0.4 child.clone txt`
|
||||
if [ "$one" = "$two" ]; then
|
||||
echo "'$one' matches '$two'"
|
||||
ret=1
|
||||
fi
|
||||
if [ "$one" != "$three" ]; then
|
||||
echo "'$one' does not match '$three'"
|
||||
ret=1
|
||||
fi
|
||||
if [ "$two" != "$four" ]; then
|
||||
echo "'$two' does not match '$four'"
|
||||
ret=1
|
||||
fi
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:exit status: $status"
|
||||
exit $status
|
||||
|
||||
Reference in New Issue
Block a user