Commit c61304eb87 for bind

commit c61304eb87e7eb4df4e14cf1fc546d584965fdfd
Author: Colin Vidal <colin@isc.org>
Date:   Wed Nov 25 11:42:25 2026 +0100

    Inline-signed zone inherits checkns/fatalns flags

    When inline-signing is used, the generated signed zone must inherit
    checkns and fatalns flags from the zone it signs.

    This avoid pre-signing failure for zone with no NS at the apex, for
    instance DELEG-only zone which doesn't have an NS RR.

diff --git a/bin/named/server.c b/bin/named/server.c
index 7013776085..9265507037 100644
--- a/bin/named/server.c
+++ b/bin/named/server.c
@@ -6310,13 +6310,20 @@ configure_zone(const cfg_obj_t *config, const cfg_obj_t *zconfig,
 	if (inline_signing) {
 		dns_zone_getraw(zone, &raw);
 		if (raw == NULL) {
+			bool zone_checkns = dns_zone_getoptions(zone) &
+					    DNS_ZONEOPT_CHECKNS;
+			bool zone_fatalns = dns_zone_getoptions(zone) &
+					    DNS_ZONEOPT_FATALNS;
+
 			dns_zone_create(&raw, dns_zone_getmctx(zone),
 					dns_zone_gettid(zone));
 			dns_zone_setorigin(raw, origin);
 			dns_zone_setview(raw, view);
 			dns_zone_setstats(raw, named_g_server->zonestats);
-			dns_zone_setoption(raw, DNS_ZONEOPT_CHECKNS, true);
-			dns_zone_setoption(zone, DNS_ZONEOPT_FATALNS, true);
+			dns_zone_setoption(raw, DNS_ZONEOPT_CHECKNS,
+					   zone_checkns);
+			dns_zone_setoption(raw, DNS_ZONEOPT_FATALNS,
+					   zone_fatalns);
 			CHECK(dns_zone_link(zone, raw));
 		}
 		named_config_findopt(zoptions, toptions,