mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Check fallback on FORMERR to EDNS options
This commit is contained in:
@@ -33,3 +33,5 @@ ns.targetns. A 10.53.0.6
|
||||
partial-formerr. NS ns.partial-formerr.
|
||||
ns.partial-formerr. A 10.53.0.2
|
||||
ns.partial-formerr. A 10.53.0.3
|
||||
options-formerr. NS ns.options-formerr.
|
||||
ns.options-formerr. A 10.53.0.10
|
||||
|
@@ -781,6 +781,18 @@ grep "ANSWER: [12]," dig.out.2.${n} > /dev/null || ret=1
|
||||
lines=$(awk '$1 == "mixedttl.tld." && $2 > 30 { print }' dig.out.2.${n} | wc -l)
|
||||
test ${lines:-1} -ne 0 && ret=1
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "check resolver behavior when FORMERR for EDNS options happens (${n})"
|
||||
ret=0
|
||||
msg="resolving options-formerr/A .* server sent FORMERR with echoed DNS COOKIE"
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
nextpart ns5/named.run >/dev/null
|
||||
dig_with_opts +tcp @10.53.0.5 options-formerr A > dig.out.${n} || ret=1
|
||||
grep "status: NOERROR" dig.out.${n} > /dev/null || ret=1
|
||||
nextpart ns5/named.run | grep "$msg" > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
|
||||
status=$((status + ret))
|
||||
|
||||
echo_i "exit status: $status"
|
||||
|
Reference in New Issue
Block a user