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 2cf6cf967d)
This commit is contained in:
Mark Andrews 2024-01-05 11:08:33 +11:00
parent 26fdc0fb80
commit 9999eebbf7

View file

@ -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;
}
}