]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Change the "RPZ not ready yet" message and its log level
authorAram Sargsyan <aram@isc.org>
Wed, 27 Aug 2025 14:35:09 +0000 (14:35 +0000)
committerPetr Špaček <pspacek@isc.org>
Wed, 3 Sep 2025 13:23:12 +0000 (13:23 +0000)
The "RPZ not ready yet" message is logged at debug 3 level. Use the
info level instead for better visibility.

After raising the log level, the rpz_log_fail_helper() function starts
appending " failed: " the the message. Change the log message so it
makes more sense.

lib/ns/query.c

index dd110568a5cbb973a3a5874f6452960fdcb6103e..11b9ee0214520e66b01833be82f66f0b7a5d4bc6 100644 (file)
@@ -4007,8 +4007,9 @@ rpz_rewrite(ns_client_t *client, dns_rdatatype_t qtype, isc_result_t qresult,
                /* Do not pollute SERVFAIL cache  */
                client->inner.attributes |= NS_CLIENTATTR_NOSETFC;
 
-               rpz_log_fail(client, DNS_RPZ_DEBUG_LEVEL3, NULL,
-                            DNS_RPZ_TYPE_QNAME, "RPZ not ready yet", result);
+               rpz_log_fail(client, DNS_RPZ_INFO_LEVEL, NULL,
+                            DNS_RPZ_TYPE_QNAME, "RPZ servfail-until-ready",
+                            DNS_R_WAIT);
                st->m.policy = DNS_RPZ_POLICY_ERROR;
                goto cleanup;
        }