From 4bbb7f5e2d66db076823d0dcc25cd7819a62cd9f Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 21 Dec 2024 15:34:10 +0530 Subject: [PATCH] CatalogZone: updated QueryRecords() to allow querying for SOA record so that it works with bind. --- DnsServerCore/Dns/Zones/CatalogZone.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DnsServerCore/Dns/Zones/CatalogZone.cs b/DnsServerCore/Dns/Zones/CatalogZone.cs index 269e0d6e..8c530f01 100644 --- a/DnsServerCore/Dns/Zones/CatalogZone.cs +++ b/DnsServerCore/Dns/Zones/CatalogZone.cs @@ -379,6 +379,9 @@ namespace DnsServerCore.Dns.Zones public override IReadOnlyList QueryRecords(DnsResourceRecordType type, bool dnssecOk) { + if (type == DnsResourceRecordType.SOA) + return base.QueryRecords(type, dnssecOk); //allow SOA for zone transfer to work with bind + return []; //catalog zone is not queriable }