mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
use unique query names
This commit is contained in:
@@ -81,9 +81,16 @@ sub reply_handler {
|
|||||||
push @ans, $rr;
|
push @ans, $rr;
|
||||||
}
|
}
|
||||||
$rcode = "NOERROR";
|
$rcode = "NOERROR";
|
||||||
} elsif ($qname eq "indirect.example.org") {
|
} elsif ($qname eq "indirect1.example.org" ||
|
||||||
|
$qname eq "indirect2.example.org" ||
|
||||||
|
$qname eq "indirect3.example.org" ||
|
||||||
|
$qname eq "indirect4.example.org" ||
|
||||||
|
$qname eq "indirect5.example.org" ||
|
||||||
|
$qname eq "indirect6.example.org" ||
|
||||||
|
$qname eq "indirect7.example.org" ||
|
||||||
|
$qname eq "indirect8.example.org") {
|
||||||
if (! $send_response) {
|
if (! $send_response) {
|
||||||
my $rr = new Net::DNS::RR("indirect.example.org 86400 $qclass NS ns1.1.example.org");
|
my $rr = new Net::DNS::RR("$qname 86400 $qclass NS ns1.1.example.org");
|
||||||
push @auth, $rr;
|
push @auth, $rr;
|
||||||
} elsif ($qtype eq "A") {
|
} elsif ($qtype eq "A") {
|
||||||
my ($ttl, $rdata) = (3600, $localaddr);
|
my ($ttl, $rdata) = (3600, $localaddr);
|
||||||
|
@@ -27,7 +27,7 @@ echo "I: attempt excessive-depth lookup ($n)"
|
|||||||
ret=0
|
ret=0
|
||||||
echo "1000" > ans2/ans.limit
|
echo "1000" > ans2/ans.limit
|
||||||
$DIG $DIGOPTS @10.53.0.2 reset > /dev/null || ret=1
|
$DIG $DIGOPTS @10.53.0.2 reset > /dev/null || ret=1
|
||||||
$DIG $DIGOPTS @10.53.0.3 indirect.example.org > dig.out.1.test$n || ret=1
|
$DIG $DIGOPTS @10.53.0.3 indirect1.example.org > dig.out.1.test$n || ret=1
|
||||||
grep "status: SERVFAIL" dig.out.1.test$n > /dev/null || ret=1
|
grep "status: SERVFAIL" dig.out.1.test$n > /dev/null || ret=1
|
||||||
$DIG $DIGOPTS +short @10.53.0.2 count txt > dig.out.2.test$n || ret=1
|
$DIG $DIGOPTS +short @10.53.0.2 count txt > dig.out.2.test$n || ret=1
|
||||||
eval count=`cat dig.out.2.test$n`
|
eval count=`cat dig.out.2.test$n`
|
||||||
@@ -41,7 +41,7 @@ ret=0
|
|||||||
echo "12" > ans2/ans.limit
|
echo "12" > ans2/ans.limit
|
||||||
$RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 flush 2>&1 | sed 's/^/I:ns1 /'
|
$RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 flush 2>&1 | sed 's/^/I:ns1 /'
|
||||||
$DIG $DIGOPTS @10.53.0.2 reset > /dev/null || ret=1
|
$DIG $DIGOPTS @10.53.0.2 reset > /dev/null || ret=1
|
||||||
$DIG $DIGOPTS @10.53.0.3 indirect.example.org > dig.out.1.test$n || ret=1
|
$DIG $DIGOPTS @10.53.0.3 indirect2.example.org > dig.out.1.test$n || ret=1
|
||||||
grep "status: NOERROR" dig.out.1.test$n > /dev/null || ret=1
|
grep "status: NOERROR" dig.out.1.test$n > /dev/null || ret=1
|
||||||
$DIG $DIGOPTS +short @10.53.0.2 count txt > dig.out.2.test$n || ret=1
|
$DIG $DIGOPTS +short @10.53.0.2 count txt > dig.out.2.test$n || ret=1
|
||||||
eval count=`cat dig.out.2.test$n`
|
eval count=`cat dig.out.2.test$n`
|
||||||
@@ -60,7 +60,7 @@ ret=0
|
|||||||
echo "12" > ans2/ans.limit
|
echo "12" > ans2/ans.limit
|
||||||
$RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 flush 2>&1 | sed 's/^/I:ns1 /'
|
$RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 flush 2>&1 | sed 's/^/I:ns1 /'
|
||||||
$DIG $DIGOPTS @10.53.0.2 reset > /dev/null || ret=1
|
$DIG $DIGOPTS @10.53.0.2 reset > /dev/null || ret=1
|
||||||
$DIG $DIGOPTS @10.53.0.3 indirect.example.org > dig.out.1.test$n || ret=1
|
$DIG $DIGOPTS @10.53.0.3 indirect3.example.org > dig.out.1.test$n || ret=1
|
||||||
grep "status: SERVFAIL" dig.out.1.test$n > /dev/null || ret=1
|
grep "status: SERVFAIL" dig.out.1.test$n > /dev/null || ret=1
|
||||||
$DIG $DIGOPTS +short @10.53.0.2 count txt > dig.out.2.test$n || ret=1
|
$DIG $DIGOPTS +short @10.53.0.2 count txt > dig.out.2.test$n || ret=1
|
||||||
eval count=`cat dig.out.2.test$n`
|
eval count=`cat dig.out.2.test$n`
|
||||||
@@ -74,7 +74,7 @@ ret=0
|
|||||||
echo "5" > ans2/ans.limit
|
echo "5" > ans2/ans.limit
|
||||||
$RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 flush 2>&1 | sed 's/^/I:ns1 /'
|
$RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 flush 2>&1 | sed 's/^/I:ns1 /'
|
||||||
$DIG $DIGOPTS @10.53.0.2 reset > /dev/null || ret=1
|
$DIG $DIGOPTS @10.53.0.2 reset > /dev/null || ret=1
|
||||||
$DIG $DIGOPTS @10.53.0.3 indirect.example.org > dig.out.1.test$n || ret=1
|
$DIG $DIGOPTS @10.53.0.3 indirect4.example.org > dig.out.1.test$n || ret=1
|
||||||
grep "status: NOERROR" dig.out.1.test$n > /dev/null || ret=1
|
grep "status: NOERROR" dig.out.1.test$n > /dev/null || ret=1
|
||||||
$DIG $DIGOPTS +short @10.53.0.2 count txt > dig.out.2.test$n || ret=1
|
$DIG $DIGOPTS +short @10.53.0.2 count txt > dig.out.2.test$n || ret=1
|
||||||
eval count=`cat dig.out.2.test$n`
|
eval count=`cat dig.out.2.test$n`
|
||||||
@@ -93,7 +93,7 @@ ret=0
|
|||||||
echo "13" > ans2/ans.limit
|
echo "13" > ans2/ans.limit
|
||||||
$RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 flush 2>&1 | sed 's/^/I:ns1 /'
|
$RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 flush 2>&1 | sed 's/^/I:ns1 /'
|
||||||
$DIG $DIGOPTS @10.53.0.2 reset > /dev/null || ret=1
|
$DIG $DIGOPTS @10.53.0.2 reset > /dev/null || ret=1
|
||||||
$DIG $DIGOPTS @10.53.0.3 indirect.example.org > dig.out.1.test$n || ret=1
|
$DIG $DIGOPTS @10.53.0.3 indirect5.example.org > dig.out.1.test$n || ret=1
|
||||||
grep "status: SERVFAIL" dig.out.1.test$n > /dev/null || ret=1
|
grep "status: SERVFAIL" dig.out.1.test$n > /dev/null || ret=1
|
||||||
$DIG $DIGOPTS +short @10.53.0.2 count txt > dig.out.2.test$n || ret=1
|
$DIG $DIGOPTS +short @10.53.0.2 count txt > dig.out.2.test$n || ret=1
|
||||||
eval count=`cat dig.out.2.test$n`
|
eval count=`cat dig.out.2.test$n`
|
||||||
@@ -107,7 +107,7 @@ ret=0
|
|||||||
echo "12" > ans2/ans.limit
|
echo "12" > ans2/ans.limit
|
||||||
$RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 flush 2>&1 | sed 's/^/I:ns1 /'
|
$RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 flush 2>&1 | sed 's/^/I:ns1 /'
|
||||||
$DIG $DIGOPTS @10.53.0.2 reset > /dev/null || ret=1
|
$DIG $DIGOPTS @10.53.0.2 reset > /dev/null || ret=1
|
||||||
$DIG $DIGOPTS @10.53.0.3 indirect.example.org > dig.out.1.test$n || ret=1
|
$DIG $DIGOPTS @10.53.0.3 indirect6.example.org > dig.out.1.test$n || ret=1
|
||||||
grep "status: NOERROR" dig.out.1.test$n > /dev/null || ret=1
|
grep "status: NOERROR" dig.out.1.test$n > /dev/null || ret=1
|
||||||
$DIG $DIGOPTS +short @10.53.0.2 count txt > dig.out.2.test$n || ret=1
|
$DIG $DIGOPTS +short @10.53.0.2 count txt > dig.out.2.test$n || ret=1
|
||||||
eval count=`cat dig.out.2.test$n`
|
eval count=`cat dig.out.2.test$n`
|
||||||
@@ -126,7 +126,7 @@ ret=0
|
|||||||
echo "10" > ans2/ans.limit
|
echo "10" > ans2/ans.limit
|
||||||
$RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 flush 2>&1 | sed 's/^/I:ns1 /'
|
$RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 flush 2>&1 | sed 's/^/I:ns1 /'
|
||||||
$DIG $DIGOPTS @10.53.0.2 reset > /dev/null || ret=1
|
$DIG $DIGOPTS @10.53.0.2 reset > /dev/null || ret=1
|
||||||
$DIG $DIGOPTS @10.53.0.3 indirect.example.org > dig.out.1.test$n || ret=1
|
$DIG $DIGOPTS @10.53.0.3 indirect7.example.org > dig.out.1.test$n || ret=1
|
||||||
grep "status: SERVFAIL" dig.out.1.test$n > /dev/null || ret=1
|
grep "status: SERVFAIL" dig.out.1.test$n > /dev/null || ret=1
|
||||||
$DIG $DIGOPTS +short @10.53.0.2 count txt > dig.out.2.test$n || ret=1
|
$DIG $DIGOPTS +short @10.53.0.2 count txt > dig.out.2.test$n || ret=1
|
||||||
eval count=`cat dig.out.2.test$n`
|
eval count=`cat dig.out.2.test$n`
|
||||||
@@ -140,7 +140,7 @@ ret=0
|
|||||||
echo "9" > ans2/ans.limit
|
echo "9" > ans2/ans.limit
|
||||||
$RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 flush 2>&1 | sed 's/^/I:ns1 /'
|
$RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 flush 2>&1 | sed 's/^/I:ns1 /'
|
||||||
$DIG $DIGOPTS @10.53.0.2 reset > /dev/null || ret=1
|
$DIG $DIGOPTS @10.53.0.2 reset > /dev/null || ret=1
|
||||||
$DIG $DIGOPTS @10.53.0.3 indirect.example.org > dig.out.1.test$n || ret=1
|
$DIG $DIGOPTS @10.53.0.3 indirect8.example.org > dig.out.1.test$n || ret=1
|
||||||
grep "status: NOERROR" dig.out.1.test$n > /dev/null || ret=1
|
grep "status: NOERROR" dig.out.1.test$n > /dev/null || ret=1
|
||||||
$DIG $DIGOPTS +short @10.53.0.2 count txt > dig.out.2.test$n || ret=1
|
$DIG $DIGOPTS +short @10.53.0.2 count txt > dig.out.2.test$n || ret=1
|
||||||
eval count=`cat dig.out.2.test$n`
|
eval count=`cat dig.out.2.test$n`
|
||||||
|
Reference in New Issue
Block a user