tests.sh revision bf8267aa453e5d2a735ed732a043b77a0b355b20
#
# Copyright (C) 2010-2012 Internet Systems Consortium, Inc. ("ISC")
#
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.5 2011/02/03 07:35:55 marka Exp $
status=0
n=0
DIGOPTS="+tcp +noadd +nosea +nostat +nocmd -p 5300"
do
echo "I:checking that $conf is accepted ($n)"
ret=0
n=`expr $n + 1`
done
do
echo "I:checking that $conf is rejected ($n)"
ret=0
n=`expr $n + 1`
done
# Check the example. domain
echo "I: checking non-excluded AAAA lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded only AAAA lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded AAAA and non-mapped A lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded only AAAA and mapped A lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking partially excluded only AAAA lookup works ($n)"
ret=0
$DIG $DIGOPTS partially-excluded-only.example. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking partially-excluded AAAA and non-mapped A lookup works ($n)"
ret=0
$DIG $DIGOPTS partially-excluded-bad-a.example. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking partially-excluded only AAAA and mapped A lookup works ($n)"
ret=0
$DIG $DIGOPTS partially-excluded-good-a.example. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking AAAA only lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A only lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A and AAAA lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-mapped A lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking NODATA AAAA lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-existent AAAA lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-excluded AAAA via CNAME lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded only AAAA via CNAME lookup works ($n)"
ret=0
$DIG $DIGOPTS cname-excluded-only.example. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded AAAA and non-mapped A via CNAME lookup works ($n)"
ret=0
$DIG $DIGOPTS cname-excluded-bad-a.example. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded only AAAA and mapped A via CNAME lookup works ($n)"
ret=0
$DIG $DIGOPTS cname-excluded-good-a.example. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking AAAA only via CNAME lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A only via CNAME lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A and AAAA via CNAME lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-mapped A via CNAME lookup works ($n)"
ret=0
$DIG $DIGOPTS cname-a-not-mapped.example. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking NODATA AAAA via CNAME lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-existent AAAA via CNAME lookup works ($n)"
ret=0
$DIG $DIGOPTS cname-non-existent.example. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
# Check the example. domain recursive only
echo "I: checking non-excluded AAAA lookup works, recursive only ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded only AAAA lookup works, recursive only ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded AAAA and non-mapped A lookup works, recursive only ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded only AAAA and mapped A lookup works, recursive only ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking partially excluded only AAAA lookup works, recursive only ($n)"
ret=0
$DIG $DIGOPTS partially-excluded-only.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking partially-excluded AAAA and non-mapped A lookup works, recursive only ($n)"
ret=0
$DIG $DIGOPTS partially-excluded-bad-a.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking partially-excluded only AAAA and mapped A lookup works, recursive only ($n)"
ret=0
$DIG $DIGOPTS partially-excluded-good-a.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking AAAA only lookup works, recursive only ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A only lookup works, recursive only ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A and AAAA lookup works, recursive only ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-mapped A lookup works, recursive only ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking NODATA AAAA lookup works, recursive only ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-existent AAAA lookup works, recursive only ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-excluded AAAA via CNAME lookup works, recursive only ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded only AAAA via CNAME lookup works, recursive only ($n)"
ret=0
$DIG $DIGOPTS cname-excluded-only.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded AAAA and non-mapped A via CNAME lookup works, recursive only ($n)"
ret=0
$DIG $DIGOPTS cname-excluded-bad-a.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded only AAAA and mapped A via CNAME lookup works, recursive only ($n)"
ret=0
$DIG $DIGOPTS cname-excluded-good-a.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking AAAA only via CNAME lookup works, recursive only ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A only via CNAME lookup works, recursive only ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A and AAAA via CNAME lookup works, recursive only ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-mapped A via CNAME lookup works, recursive only ($n)"
ret=0
$DIG $DIGOPTS cname-a-not-mapped.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking NODATA AAAA via CNAME lookup works, recursive only ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-existent AAAA via CNAME lookup works, recursive only ($n)"
ret=0
$DIG $DIGOPTS cname-non-existent.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
# Check the example. domain recursive only w/o recursion
echo "I: checking non-excluded AAAA lookup works, recursive only +norec ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded only AAAA lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec excluded-only.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded AAAA and non-mapped A lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec excluded-bad-a.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded only AAAA and mapped A lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec excluded-good-a.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking partially excluded only AAAA lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec partially-excluded-only.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking partially-excluded AAAA and non-mapped A lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec partially-excluded-bad-a.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking partially-excluded only AAAA and mapped A lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec partially-excluded-good-a.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking AAAA only lookup works, recursive only +norec ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A only lookup works, recursive only +norec ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A and AAAA lookup works, recursive only +norec ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-mapped A lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec a-not-mapped.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking NODATA AAAA lookup works, recursive only +norec ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-existent AAAA lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec non-existent.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking non-excluded AAAA via CNAME lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec cname-aaaa-only.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded only AAAA via CNAME lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec cname-excluded-only.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded AAAA and non-mapped A via CNAME lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec cname-excluded-bad-a.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded only AAAA and mapped A via CNAME lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec cname-excluded-good-a.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking AAAA only via CNAME lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec cname-aaaa-only.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking A only via CNAME lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec cname-a-only.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking A and AAAA via CNAME lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec cname-a-and-aaaa.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking non-mapped A via CNAME lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec cname-a-not-mapped.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking NODATA AAAA via CNAME lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec cname-mx-only.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking non-existent AAAA via CNAME lookup works, recursive only +norec ($n)"
ret=0
$DIG $DIGOPTS +norec cname-non-existent.example. @10.53.0.1 -b 10.53.0.1 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
# Check the example. domain from non client
echo "I: checking non-excluded AAAA from non-client lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded only AAAA from non-client lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded AAAA and non-mapped A from non-client lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded only AAAA and mapped A from non-client lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking AAAA only from non-client lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A only from non-client lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A and AAAA from non-client lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-mapped A from non-client lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking NODATA AAAA from non-client lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-existent AAAA from non-client lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-excluded AAAA via CNAME from non-client lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded only AAAA via CNAME from non-client lookup works ($n)"
ret=0
$DIG $DIGOPTS cname-excluded-only.example. @10.53.0.2 -b 10.53.0.3 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded AAAA and non-mapped A via CNAME from non-client lookup works ($n)"
ret=0
$DIG $DIGOPTS cname-excluded-bad-a.example. @10.53.0.2 -b 10.53.0.3 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded only AAAA and mapped A via CNAME from non-client lookup works ($n)"
ret=0
$DIG $DIGOPTS cname-excluded-good-a.example. @10.53.0.2 -b 10.53.0.3 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking AAAA only via CNAME from non-client lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A only via CNAME from non-client lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A and AAAA via CNAME from non-client lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-mapped A via CNAME from non-client lookup works ($n)"
ret=0
$DIG $DIGOPTS cname-a-not-mapped.example. @10.53.0.2 -b 10.53.0.3 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking NODATA AAAA via CNAME from non-client lookup works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-existent AAAA via CNAME from non-client lookup works ($n)"
ret=0
$DIG $DIGOPTS cname-non-existent.example. @10.53.0.2 -b 10.53.0.3 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
# Check the signed. domain
echo "I: checking non-excluded AAAA lookup is signed zone works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded only AAAA lookup is signed zone works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded AAAA and non-mapped A lookup is signed zone works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded only AAAA and mapped A lookup is signed zone works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking AAAA only lookup is signed zone works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A only lookup is signed zone works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A and AAAA lookup is signed zone works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-mapped A lookup is signed zone works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking NODATA AAAA lookup is signed zone works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-existent AAAA lookup is signed zone works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-excluded AAAA via CNAME lookup is signed zone works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded only AAAA via CNAME lookup is signed zone works ($n)"
ret=0
$DIG $DIGOPTS cname-excluded-only.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded AAAA and non-mapped A via CNAME lookup is signed zone works ($n)"
ret=0
$DIG $DIGOPTS cname-excluded-bad-a.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded only AAAA and mapped A via CNAME lookup is signed zone works ($n)"
ret=0
$DIG $DIGOPTS cname-excluded-good-a.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking AAAA only via CNAME lookup is signed zone works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A only via CNAME lookup is signed zone works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A and AAAA via CNAME lookup is signed zone works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-mapped A via CNAME lookup is signed zone works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking NODATA AAAA via CNAME lookup is signed zone works ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-existent AAAA via CNAME lookup is signed zone works ($n)"
ret=0
n=`expr $n + 1`
# Check the signed. domain
echo "I: checking non-excluded AAAA lookup is signed zone works with +dnssec ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking excluded only AAAA lookup is signed zone works with +dnssec ($n)"
ret=0
$DIG $DIGOPTS +dnssec excluded-only.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded AAAA and non-mapped A lookup is signed zone works with +dnssec ($n)"
ret=0
$DIG $DIGOPTS +dnssec excluded-bad-a.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded only AAAA and mapped A lookup is signed zone works with +dnssec ($n)"
ret=0
$DIG $DIGOPTS +dnssec excluded-good-a.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking AAAA only lookup is signed zone works with +dnssec ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A only lookup is signed zone works with +dnssec ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking A and AAAA lookup is signed zone works with +dnssec ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-mapped A lookup is signed zone works with +dnssec ($n)"
ret=0
$DIG $DIGOPTS +dnssec a-not-mapped.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking NODATA AAAA lookup is signed zone works with +dnssec ($n)"
ret=0
n=`expr $n + 1`
echo "I: checking non-existent AAAA lookup is signed zone works with +dnssec ($n)"
ret=0
$DIG $DIGOPTS +dnssec non-existent.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking non-excluded AAAA via CNAME lookup is signed zone works with +dnssec ($n)"
ret=0
$DIG $DIGOPTS +dnssec cname-aaaa-only.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded only AAAA via CNAME lookup is signed zone works with +dnssec ($n)"
ret=0
$DIG $DIGOPTS +dnssec cname-excluded-only.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded AAAA and non-mapped A via CNAME lookup is signed zone works with +dnssec ($n)"
ret=0
$DIG $DIGOPTS +dnssec cname-excluded-bad-a.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking excluded only AAAA and mapped A via CNAME lookup is signed zone works with +dnssec ($n)"
ret=0
$DIG $DIGOPTS +dnssec cname-excluded-good-a.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking AAAA only via CNAME lookup is signed zone works with +dnssec ($n)"
ret=0
$DIG $DIGOPTS +dnssec cname-aaaa-only.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking A only via CNAME lookup is signed zone works with +dnssec ($n)"
ret=0
$DIG $DIGOPTS +dnssec cname-a-only.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking A and AAAA via CNAME lookup is signed zone works with +dnssec ($n)"
ret=0
$DIG $DIGOPTS +dnssec cname-a-and-aaaa.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking non-mapped A via CNAME lookup is signed zone works with +dnssec ($n)"
ret=0
$DIG $DIGOPTS +dnssec cname-a-not-mapped.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking NODATA AAAA via CNAME lookup is signed zone works with +dnssec ($n)"
ret=0
$DIG $DIGOPTS +dnssec cname-mx-only.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking non-existent AAAA via CNAME lookup is signed zone works with +dnssec ($n)"
ret=0
$DIG $DIGOPTS +dnssec cname-non-existent.signed. @10.53.0.2 -b 10.53.0.2 aaaa > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking reverse mapping ($n)"
ret=0
n=`expr $n + 1`
do
ret=0
echo "I: checking reverse mapping of $a ($n)"
n=`expr $n + 1`
done
while test "${rev}" != "${fin}"
do
ret=0
echo "I: checking $rev ($n)"
n=`expr $n + 1`
done
echo "I: checking dns64-server and dns64-contact ($n)"
$DIG $DIGOPTS soa 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.a.a.a.a.1.0.0.2.ip6.arpa @10.53.0.2 > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking TTL less than 600 from zone ($n)"
#expect 500
n=`expr $n + 1`
echo "I: checking TTL more than 600 from zone ($n)"
#expect 700
n=`expr $n + 1`
echo "I: checking TTL less than minimum from zone ($n)"
#expect 1100
n=`expr $n + 1`
echo "I: checking TTL limited to minimum from zone ($n)"
#expect 1200
n=`expr $n + 1`
echo "I: checking TTL less than 600 via cache ($n)"
#expect 500
$DIG $DIGOPTS aaaa ttl-less-than-600.example +rec -b 10.53.0.2 @10.53.0.2 > dig.out.ns1.test$n || ret=1
n=`expr $n + 1`
echo "I: checking TTL more than 600 via cache ($n)"
#expect 700
$DIG $DIGOPTS aaaa ttl-more-than-600.example +rec -b 10.53.0.2 @10.53.0.2 > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking TTL less than minimum via cache ($n)"
#expect 1100
$DIG $DIGOPTS aaaa ttl-less-than-minimum.example +rec -b 10.53.0.2 @10.53.0.2 > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I: checking TTL limited to minimum via cache ($n)"
#expect 1200
$DIG $DIGOPTS aaaa ttl-more-than-minimum.example +rec -b 10.53.0.2 @10.53.0.2 > dig.out.ns2.test$n || ret=1
n=`expr $n + 1`
echo "I:exit status: $status"
exit $status