From 9999eebbf76e73b542aaf57d8856c2c8abe99811 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 5 Jan 2024 11:08:33 +1100 Subject: [PATCH] Report the type being filtered from an UPDATE When processing UPDATE request DNSKEY, CDNSKEY and CDS record that are managed by named are filtered out. The log message has been updated to report the actual type rather that just DNSKEY. (cherry picked from commit 2cf6cf967deeed3ec412d6347b9c7c4874ec3f57) --- lib/ns/update.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/ns/update.c b/lib/ns/update.c index d404dfa786..1334c93380 100644 --- a/lib/ns/update.c +++ b/lib/ns/update.c @@ -3403,11 +3403,18 @@ update_action(isc_task_t *task, isc_event_t *event) { FAIL(r); } if (inuse) { + char typebuf + [DNS_RDATATYPE_FORMATSIZE]; + + dns_rdatatype_format( + rdata.type, typebuf, + sizeof(typebuf)); update_log(client, zone, LOGLEVEL_PROTOCOL, "attempt to " "delete in use " - "DNSKEY ignored"); + "%s ignored", + typebuf); continue; } }