From 2cf6cf967deeed3ec412d6347b9c7c4874ec3f57 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. --- 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 9f9716451b..dfecd4262f 100644 --- a/lib/ns/update.c +++ b/lib/ns/update.c @@ -3261,11 +3261,18 @@ update_action(void *arg) { 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; } }