]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Report the type being filtered from an UPDATE
authorMark Andrews <marka@isc.org>
Fri, 5 Jan 2024 00:08:33 +0000 (11:08 +1100)
committerMark Andrews <marka@isc.org>
Fri, 12 Jan 2024 14:06:58 +0000 (14:06 +0000)
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

index 9f9716451b7d8d3db695999c025794e7a1f39ea4..dfecd4262f8c92b3d98afabe708c7480d484d168 100644 (file)
@@ -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;
                                        }
                                }