mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Test that both normal and ANY queries that match a CNAME are properly
validated.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
||||||
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
# $Id: tests.sh,v 1.30 2001/02/20 18:33:49 bwelling Exp $
|
# $Id: tests.sh,v 1.31 2001/02/21 06:47:45 bwelling Exp $
|
||||||
|
|
||||||
SYSTEMTESTTOP=..
|
SYSTEMTESTTOP=..
|
||||||
. $SYSTEMTESTTOP/conf.sh
|
. $SYSTEMTESTTOP/conf.sh
|
||||||
@@ -232,5 +232,33 @@ n=`expr $n + 1`
|
|||||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||||
status=`expr $status + $ret`
|
status=`expr $status + $ret`
|
||||||
|
|
||||||
|
echo "I:checking that validation of a query returning a CNAME works ($n)"
|
||||||
|
ret=0
|
||||||
|
$DIG $DIGOPTS +noauth cname1.example. txt @10.53.0.2 \
|
||||||
|
> dig.out.ns2.test$n || ret=1
|
||||||
|
$DIG $DIGOPTS +noauth cname1.example. txt @10.53.0.4 \
|
||||||
|
> dig.out.ns4.test$n || ret=1
|
||||||
|
$PERL ../digcomp.pl dig.out.ns2.test$n dig.out.ns4.test$n || ret=1
|
||||||
|
grep "NOERROR" dig.out.ns4.test$n > /dev/null || ret=1
|
||||||
|
# the CNAME & its sig, the TXT and its SIG
|
||||||
|
grep "ANSWER: 4" dig.out.ns4.test$n > /dev/null || ret=1
|
||||||
|
n=`expr $n + 1`
|
||||||
|
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||||
|
status=`expr $status + $ret`
|
||||||
|
|
||||||
|
echo "I:checking that validation of an ANY query returning a CNAME works ($n)"
|
||||||
|
ret=0
|
||||||
|
$DIG $DIGOPTS +noauth cname2.example. any @10.53.0.2 \
|
||||||
|
> dig.out.ns2.test$n || ret=1
|
||||||
|
$DIG $DIGOPTS +noauth cname2.example. any @10.53.0.4 \
|
||||||
|
> dig.out.ns4.test$n || ret=1
|
||||||
|
$PERL ../digcomp.pl dig.out.ns2.test$n dig.out.ns4.test$n || ret=1
|
||||||
|
grep "NOERROR" dig.out.ns4.test$n > /dev/null || ret=1
|
||||||
|
# The CNAME, NXT, and their SIGs
|
||||||
|
grep "ANSWER: 4" dig.out.ns4.test$n > /dev/null || ret=1
|
||||||
|
n=`expr $n + 1`
|
||||||
|
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||||
|
status=`expr $status + $ret`
|
||||||
|
|
||||||
echo "I:exit status: $status"
|
echo "I:exit status: $status"
|
||||||
exit $status
|
exit $status
|
||||||
|
Reference in New Issue
Block a user