]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
allow glue in delegations with QTYPE=ANY
authorEvan Hunt <each@isc.org>
Wed, 26 Nov 2025 08:07:48 +0000 (00:07 -0800)
committerEvan Hunt <each@isc.org>
Thu, 11 Dec 2025 18:36:09 +0000 (10:36 -0800)
when a query for type ANY triggers a delegation response, all
additional data was omitted from the response, including
mandatory glue. this has been corrected.

lib/ns/query.c

index 58a439265b7ce787d689b550230868bfd7101c59..a07eae3298d15cc262d67fbac61be7461abb2a26 100644 (file)
@@ -2331,7 +2331,10 @@ query_addrrset(query_ctx_t *qctx, dns_name_t **namep,
         */
        query_addtoname(mname, rdataset);
        query_setorder(qctx, mname, rdataset);
-       if (qctx->qtype != dns_rdatatype_any) {
+       if (qctx->qtype != dns_rdatatype_any ||
+           (!qctx->authoritative && section == DNS_SECTION_AUTHORITY &&
+            rdataset->type == dns_rdatatype_ns))
+       {
                query_additional(qctx, mname, rdataset);
        }