mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-04 09:32:04 -04:00
3892. [bug] Setting '-t aaaa' in .digrc had unintended side
effects. [RT #36452]
This commit is contained in:
parent
607c9360f1
commit
3c13af3759
5 changed files with 21 additions and 2 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
3892. [bug] Setting '-t aaaa' in .digrc had unintended side
|
||||
effects. [RT #36452]
|
||||
|
||||
3891. [bug] Use ${INSTALL_SCRIPT} rather than ${INSTALL_PROGRAM}
|
||||
to install python programs.
|
||||
|
||||
|
|
|
|||
|
|
@ -1559,7 +1559,8 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
|
|||
(*lookup)->tcp_mode = ISC_TRUE;
|
||||
} else {
|
||||
(*lookup)->rdtype = rdtype;
|
||||
(*lookup)->rdtypeset = ISC_TRUE;
|
||||
if (!config_only)
|
||||
(*lookup)->rdtypeset = ISC_TRUE;
|
||||
if (rdtype == dns_rdatatype_axfr) {
|
||||
(*lookup)->section_question = plusquest;
|
||||
(*lookup)->comments = pluscomm;
|
||||
|
|
|
|||
|
|
@ -31,3 +31,4 @@ rm -f ns6/dsset-example.net. ns6/example.net.db.signed.jnl
|
|||
rm -f ns6/to-be-removed.tld.db ns6/to-be-removed.tld.db.jnl
|
||||
rm -f ns7/server.db ns7/server.db.jnl ns7/named.conf
|
||||
rm -f resolve.out
|
||||
rm -f .digrc
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ SYSTEMTESTTOP=..
|
|||
|
||||
if $PERL -e 'use Net::DNS;' 2>/dev/null
|
||||
then
|
||||
if $PERL -e 'use Net::DNS; die if ($Net::DNS::VERSION >= 0.76 && $Net::DNS::VERSION <= 0.77);' 2>/dev/null
|
||||
if $PERL -e 'use Net::DNS; die if ($Net::DNS::VERSION eq "0.76" || $Net::DNS::VERSION eq "0.77");' 2>/dev/null
|
||||
then
|
||||
:
|
||||
else
|
||||
|
|
|
|||
|
|
@ -486,5 +486,19 @@ grep "query: noedns.fetchall.tld IN ANY +E" ns5/named.run > /dev/null && ret=1
|
|||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo "I:check that '-t aaaa' in .digrc does not have unexpected side effects ($n)"
|
||||
ret=0
|
||||
echo "-t aaaa" > .digrc
|
||||
env HOME=`pwd` $DIG @10.53.0.4 -p 5300 . > dig.out.1.${n} || ret=1
|
||||
env HOME=`pwd` $DIG @10.53.0.4 -p 5300 . A > dig.out.2.${n} || ret=1
|
||||
env HOME=`pwd` $DIG @10.53.0.4 -p 5300 -x 127.0.0.1 > dig.out.3.${n} || ret=1
|
||||
grep ';\..*IN.*AAAA$' dig.out.1.${n} > /dev/null || ret=1
|
||||
grep ';\..*IN.*A$' dig.out.2.${n} > /dev/null || ret=1
|
||||
grep 'extra type option' dig.out.2.${n} > /dev/null && ret=1
|
||||
grep ';1\.0\.0\.127\.in-addr\.arpa\..*IN.*PTR$' dig.out.3.${n} > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:exit status: $status"
|
||||
exit $status
|
||||
|
|
|
|||
Loading…
Reference in a new issue