mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-22 01:56:00 -04:00
Check delegation response to ANY query
If mandatory glue is present, it should be returned when the query type is ANY.
This commit is contained in:
parent
4b4051b09b
commit
92919609c4
2 changed files with 12 additions and 0 deletions
|
|
@ -20,3 +20,5 @@ $TTL 300 ; 5 minutes
|
|||
NS ns
|
||||
ns A 10.53.0.1
|
||||
server A 10.53.0.100
|
||||
child NS ns.child
|
||||
ns.child A 10.53.0.1
|
||||
|
|
|
|||
|
|
@ -238,5 +238,15 @@ grep "; Report-Channel: \"rad.example.net\"" dig.out.test$n >/dev/null || ret=1
|
|||
[ $ret -eq 0 ] || echo_i "failed"
|
||||
status=$((status + ret))
|
||||
|
||||
n=$((n + 1))
|
||||
echo_i "check delegation response to ANY query ($n)"
|
||||
ret=0
|
||||
$DIG $DIGOPTS @10.53.0.1 foo.child.example.net any >dig.out.test$n || ret=1
|
||||
grep "ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 2" dig.out.test$n >/dev/null || ret=1
|
||||
grep 'child\.example\.net\..300.IN.NS.ns\.child\.example\.net\.$' dig.out.test$n >/dev/null || ret=1
|
||||
grep 'ns\.child\.example\.net\..300.IN.A.10\.53\.0\.1$' dig.out.test$n >/dev/null || ret=1
|
||||
[ $ret -eq 0 ] || echo_i "failed"
|
||||
status=$((status + ret))
|
||||
|
||||
echo_i "exit status: $status"
|
||||
[ $status -eq 0 ] || exit 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue