[v9_9] hold

This commit is contained in:
Evan Hunt 2016-01-20 17:32:39 -08:00
parent b6d7675298
commit 4b8c357439
3 changed files with 5 additions and 2 deletions

View file

@ -4420,8 +4420,6 @@ rpz_find(ns_client_t *client, dns_rdatatype_t qtype, dns_name_t *qnamef,
policy = DNS_RPZ_POLICY_MISS;
break;
default:
dns_db_detach(dbp);
dns_zone_detach(zonep);
rpz_log_fail(client, DNS_RPZ_ERROR_LEVEL, rpz_type, qnamef,
"", result);
CTRACE(ISC_LOG_ERROR,

View file

@ -41,6 +41,7 @@ ns A 10.53.0.3
redirect A 127.0.0.1
*.redirect A 127.0.0.1
*.credirect CNAME google.com.
example.com NS example.org.
; names in the RPZ TLDs that some say should not be rewritten.

View file

@ -548,5 +548,9 @@ $DIG +noall +answer -p 5300 @$ns3 any a3-2.tld2 > dig.out.any
ttl=`awk '/a3-2 tld2 text/ {print $2}' dig.out.any`
if test ${ttl:=0} -eq 0; then setret I:failed; fi
echo "I:checking rpz with delegation fails correctly"
$DIG -p 5300 @$ns3 ns example.com > dig.out.delegation
grep "status: SERVFAIL" dig.out.delegation > /dev/null || setret "I:failed"
echo "I:exit status: $status"
exit $status