mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Added new logging category rpz-passthru
It is now possible to use the new logging category "rpz-passthru" to redirect RPZ passthru activity to a dedicate logging channel.
This commit is contained in:
@@ -1164,8 +1164,12 @@ rpz_log_rewrite(ns_client_t *client, bool disabled, dns_rpz_policy_t policy,
|
||||
dns_rdataclass_format(rdataset->rdclass, classbuf, sizeof(classbuf));
|
||||
dns_rdatatype_format(rdataset->type, typebuf, sizeof(typebuf));
|
||||
|
||||
ns_client_log(client, DNS_LOGCATEGORY_RPZ, NS_LOGMODULE_QUERY,
|
||||
DNS_RPZ_INFO_LEVEL,
|
||||
/* It's possible to have a separate log channel for rpz passthru. */
|
||||
isc_logcategory_t *log_cat = (policy == DNS_RPZ_POLICY_PASSTHRU)
|
||||
? DNS_LOGCATEGORY_RPZ_PASSTHRU
|
||||
: DNS_LOGCATEGORY_RPZ;
|
||||
|
||||
ns_client_log(client, log_cat, NS_LOGMODULE_QUERY, DNS_RPZ_INFO_LEVEL,
|
||||
"%srpz %s %s rewrite %s/%s/%s via %s%s%s%s",
|
||||
disabled ? "disabled " : "", dns_rpz_type2str(type),
|
||||
dns_rpz_policy2str(policy), qname_buf, typebuf, classbuf,
|
||||
|
Reference in New Issue
Block a user