[master] unify internal and export libraries
3550. [func] Unified the internal and export versions of the BIND libraries, allowing external clients to use the same libraries as BIND. [RT #33131]
This commit is contained in:
@@ -30,11 +30,11 @@ grep "status: NXDOMAIN" dig.out > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
if [ -x ${SAMPLE} ] ; then
|
||||
if [ -x ${RESOLVE} ] ; then
|
||||
echo "I:checking non-cachable NXDOMAIN response handling using dns_client"
|
||||
ret=0
|
||||
${SAMPLE} -p 5300 -t a 10.53.0.1 nxdomain.example.net 2> sample.out || ret=1
|
||||
grep "resolution failed: ncache nxdomain" sample.out > /dev/null || ret=1
|
||||
${RESOLVE} -p 5300 -t a -s 10.53.0.1 nxdomain.example.net 2> resolve.out || ret=1
|
||||
grep "resolution failed: ncache nxdomain" resolve.out > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
fi
|
||||
@@ -46,11 +46,11 @@ grep "status: NOERROR" dig.out > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
if [ -x ${SAMPLE} ] ; then
|
||||
if [ -x ${RESOLVE} ] ; then
|
||||
echo "I:checking non-cachable NODATA response handling using dns_client"
|
||||
ret=0
|
||||
${SAMPLE} -p 5300 -t a 10.53.0.1 nodata.example.net 2> sample.out || ret=1
|
||||
grep "resolution failed: ncache nxrrset" sample.out > /dev/null || ret=1
|
||||
${RESOLVE} -p 5300 -t a -s 10.53.0.1 nodata.example.net 2> resolve.out || ret=1
|
||||
grep "resolution failed: ncache nxrrset" resolve.out > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
fi
|
||||
@@ -59,11 +59,11 @@ echo "I:checking handling of bogus referrals"
|
||||
# If the server has the "INSIST(!external)" bug, this query will kill it.
|
||||
$DIG +tcp www.example.com. a @10.53.0.1 -p 5300 >/dev/null || status=1
|
||||
|
||||
if [ -x ${SAMPLE} ] ; then
|
||||
if [ -x ${RESOLVE} ] ; then
|
||||
echo "I:checking handling of bogus referrals using dns_client"
|
||||
ret=0
|
||||
${SAMPLE} -p 5300 -t a 10.53.0.1 www.example.com 2> sample.out || ret=1
|
||||
grep "resolution failed: failure" sample.out > /dev/null || ret=1
|
||||
${RESOLVE} -p 5300 -t a -s 10.53.0.1 www.example.com 2> resolve.out || ret=1
|
||||
grep "resolution failed: failure" resolve.out > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
fi
|
||||
@@ -99,11 +99,11 @@ if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
|
||||
if [ -x ${SAMPLE} ] ; then
|
||||
if [ -x ${RESOLVE} ] ; then
|
||||
echo "I:checking answer IPv4 address filtering using dns_client (accept)"
|
||||
ret=0
|
||||
${SAMPLE} -p 5300 -t a 10.53.0.1 www.example.org > sample.out || ret=1
|
||||
grep "www.example.org..*.192.0.2.1" sample.out > /dev/null || ret=1
|
||||
${RESOLVE} -p 5300 -t a -s 10.53.0.1 www.example.org > resolve.out || ret=1
|
||||
grep "www.example.org..*.192.0.2.1" resolve.out > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
fi
|
||||
@@ -115,11 +115,11 @@ grep "status: NOERROR" dig.out > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
if [ -x ${SAMPLE} ] ; then
|
||||
if [ -x ${RESOLVE} ] ; then
|
||||
echo "I:checking answer IPv6 address filtering using dns_client (accept)"
|
||||
ret=0
|
||||
${SAMPLE} -p 5300 -t aaaa 10.53.0.1 www.example.org > sample.out || ret=1
|
||||
grep "www.example.org..*.2001:db8:beef::1" sample.out > /dev/null || ret=1
|
||||
${RESOLVE} -p 5300 -t aaaa -s 10.53.0.1 www.example.org > resolve.out || ret=1
|
||||
grep "www.example.org..*.2001:db8:beef::1" resolve.out > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
fi
|
||||
@@ -138,12 +138,12 @@ grep "status: NOERROR" dig.out > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
if [ -x ${SAMPLE} ] ; then
|
||||
if [ -x ${RESOLVE} ] ; then
|
||||
echo "I:checking CNAME target filtering using dns_client (accept)"
|
||||
ret=0
|
||||
${SAMPLE} -p 5300 -t a 10.53.0.1 goodcname.example.net > sample.out || ret=1
|
||||
grep "goodcname.example.net..*.goodcname.example.org." sample.out > /dev/null || ret=1
|
||||
grep "goodcname.example.org..*.192.0.2.1" sample.out > /dev/null || ret=1
|
||||
${RESOLVE} -p 5300 -t a -s 10.53.0.1 goodcname.example.net > resolve.out || ret=1
|
||||
grep "goodcname.example.net..*.goodcname.example.org." resolve.out > /dev/null || ret=1
|
||||
grep "goodcname.example.org..*.192.0.2.1" resolve.out > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
fi
|
||||
@@ -155,12 +155,12 @@ grep "status: NOERROR" dig.out > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
if [ -x ${SAMPLE} ] ; then
|
||||
if [ -x ${RESOLVE} ] ; then
|
||||
echo "I:checking CNAME target filtering using dns_client (accept due to subdomain)"
|
||||
ret=0
|
||||
${SAMPLE} -p 5300 -t a 10.53.0.1 cname.sub.example.org > sample.out || ret=1
|
||||
grep "cname.sub.example.org..*.ok.sub.example.org." sample.out > /dev/null || ret=1
|
||||
grep "ok.sub.example.org..*.192.0.2.1" sample.out > /dev/null || ret=1
|
||||
${RESOLVE} -p 5300 -t a -s 10.53.0.1 cname.sub.example.org > resolve.out || ret=1
|
||||
grep "cname.sub.example.org..*.ok.sub.example.org." resolve.out > /dev/null || ret=1
|
||||
grep "ok.sub.example.org..*.192.0.2.1" resolve.out > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
fi
|
||||
@@ -179,12 +179,12 @@ grep "status: NOERROR" dig.out > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
if [ -x ${SAMPLE} ] ; then
|
||||
if [ -x ${RESOLVE} ] ; then
|
||||
echo "I:checking DNAME target filtering using dns_client (accept)"
|
||||
ret=0
|
||||
${SAMPLE} -p 5300 -t a 10.53.0.1 foo.gooddname.example.net > sample.out || ret=1
|
||||
grep "foo.gooddname.example.net..*.gooddname.example.org" sample.out > /dev/null || ret=1
|
||||
grep "foo.gooddname.example.org..*.192.0.2.1" sample.out > /dev/null || ret=1
|
||||
${RESOLVE} -p 5300 -t a -s 10.53.0.1 foo.gooddname.example.net > resolve.out || ret=1
|
||||
grep "foo.gooddname.example.net..*.gooddname.example.org" resolve.out > /dev/null || ret=1
|
||||
grep "foo.gooddname.example.org..*.192.0.2.1" resolve.out > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
fi
|
||||
@@ -196,12 +196,12 @@ grep "status: NOERROR" dig.out > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
if [ -x ${SAMPLE} ] ; then
|
||||
if [ -x ${RESOLVE} ] ; then
|
||||
echo "I:checking DNAME target filtering using dns_client (accept due to subdomain)"
|
||||
ret=0
|
||||
${SAMPLE} -p 5300 -t a 10.53.0.1 www.dname.sub.example.org > sample.out || ret=1
|
||||
grep "www.dname.sub.example.org..*.ok.sub.example.org." sample.out > /dev/null || ret=1
|
||||
grep "www.ok.sub.example.org..*.192.0.2.1" sample.out > /dev/null || ret=1
|
||||
${RESOLVE} -p 5300 -t a -s 10.53.0.1 www.dname.sub.example.org > resolve.out || ret=1
|
||||
grep "www.dname.sub.example.org..*.ok.sub.example.org." resolve.out > /dev/null || ret=1
|
||||
grep "www.ok.sub.example.org..*.192.0.2.1" resolve.out > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user