Send upstream TAT queries for locally served zones
Trying to resolve a trust anchor telemetry query for a locally served zone does not cause upstream queries to be sent as the response is determined just by consulting local data. Work around this issue by calling dns_view_findzonecut() first in order to determine the NS RRset for a given domain name and then passing the zone cut found to dns_resolver_createfetch(). Note that this change only applies to TAT queries generated by the resolver itself, not to ones received from downstream resolvers.
This commit is contained in:
@@ -404,5 +404,13 @@ nextpart ns3/named.run | grep "No correct RSASHA256 signature for verify-reconfi
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo_i "ensuring trust anchor telemetry queries are sent upstream for a mirror zone ($n)"
|
||||
ret=0
|
||||
# ns3 is started with "-T tat=1", so TAT queries should have already been sent.
|
||||
grep "_ta-[-0-9a-f]*/NULL" ns1/named.run > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "exit status: $status"
|
||||
[ $status -eq 0 ] || exit 1
|
||||
|
||||
Reference in New Issue
Block a user