mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 01:31:48 -04:00
RPZ 'servfail-until-ready': skip updating SERVFAIL cache
In order to not pollute the SERVFAIL cache with the configured
SERVFAIL answers while RPZ is loading, set the NS_CLIENTATTR_NOSETFC
attribute for the client.
(cherry picked from commit d9b5f6c502)
This commit is contained in:
parent
fe80c31859
commit
cf687c0bda
1 changed files with 3 additions and 0 deletions
|
|
@ -4359,6 +4359,9 @@ rpz_rewrite(ns_client_t *client, dns_rdatatype_t qtype, isc_result_t qresult,
|
|||
if (first_time && popt.servfail_until_ready &&
|
||||
zones_processed < zones_registered)
|
||||
{
|
||||
/* Do not pollute SERVFAIL cache */
|
||||
client->attributes |= NS_CLIENTATTR_NOSETFC;
|
||||
|
||||
rpz_log_fail(client, DNS_RPZ_DEBUG_LEVEL3, NULL,
|
||||
DNS_RPZ_TYPE_QNAME, "RPZ not ready yet", result);
|
||||
st->m.policy = DNS_RPZ_POLICY_ERROR;
|
||||
|
|
|
|||
Loading…
Reference in a new issue