mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 09:22:06 -04:00
system test
Attempt a zone transfer with mismatched SOA records.
This commit is contained in:
parent
7e54d8d2cb
commit
4d94f82232
3 changed files with 30 additions and 0 deletions
10
bin/tests/system/xfer/ans5/soamismatch
Normal file
10
bin/tests/system/xfer/ans5/soamismatch
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/SOA tsig_key LSAnCU+Z/
|
||||
nil. 300 SOA ns.nil. root.nil. 1 300 300 604800 300
|
||||
/AXFR tsig_key LSAnCU+Z/
|
||||
nil. 300 SOA ns.nil. root.nil. 1 300 300 604800 300
|
||||
/AXFR tsig_key LSAnCU+Z/
|
||||
nil. 300 NS ns.nil.
|
||||
nil. 300 TXT "SOA mismatch AXFR"
|
||||
a.nil. 60 A 10.0.0.61
|
||||
/AXFR tsig_key LSAnCU+Z/
|
||||
nil. 300 SOA whatever. other. 1 300 300 604800 300
|
||||
|
|
@ -428,6 +428,25 @@ $DIGCMD nil. TXT | grep 'bad message id' >/dev/null && {
|
|||
status=$((status+1))
|
||||
}
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "mismatched SOA ($n)"
|
||||
|
||||
sendcmd < ans5/soamismatch
|
||||
|
||||
$RNDCCMD 10.53.0.4 retransfer nil | sed 's/^/ns4 /' | cat_i
|
||||
|
||||
sleep 2
|
||||
|
||||
nextpart ns4/named.run | grep "Transfer status: FORMERR" > /dev/null || {
|
||||
echo_i "failed: expected status was not logged"
|
||||
status=$((status+1))
|
||||
}
|
||||
|
||||
$DIGCMD nil. TXT | grep 'SOA mismatch AXFR' >/dev/null && {
|
||||
echo_i "failed"
|
||||
status=$((status+1))
|
||||
}
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "check that we ask for and get a EDNS EXPIRE response ($n)"
|
||||
# force a refresh query
|
||||
|
|
|
|||
|
|
@ -1000,6 +1000,7 @@
|
|||
./bin/tests/system/xfer/ans5/badmessageid X 2020,2021
|
||||
./bin/tests/system/xfer/ans5/goodaxfr X 2011,2018,2019,2020,2021
|
||||
./bin/tests/system/xfer/ans5/partial X 2011,2018,2019,2020,2021
|
||||
./bin/tests/system/xfer/ans5/soamismatch X 2021
|
||||
./bin/tests/system/xfer/ans5/unknownkey X 2011,2018,2019,2020,2021
|
||||
./bin/tests/system/xfer/ans5/unsigned X 2011,2018,2019,2020,2021
|
||||
./bin/tests/system/xfer/ans5/wrongkey X 2011,2018,2019,2020,2021
|
||||
|
|
|
|||
Loading…
Reference in a new issue