From 5e46b273816dddd422663fe00ca206eff55ff837 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 14 Sep 2024 17:59:16 +0530 Subject: [PATCH] added SecondaryCatalogSubDomainZone --- .../Zones/SecondaryCatalogSubDomainZone.cs | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 DnsServerCore/Dns/Zones/SecondaryCatalogSubDomainZone.cs diff --git a/DnsServerCore/Dns/Zones/SecondaryCatalogSubDomainZone.cs b/DnsServerCore/Dns/Zones/SecondaryCatalogSubDomainZone.cs new file mode 100644 index 00000000..ad6ccf1f --- /dev/null +++ b/DnsServerCore/Dns/Zones/SecondaryCatalogSubDomainZone.cs @@ -0,0 +1,44 @@ +/* +Technitium DNS Server +Copyright (C) 2024 Shreyas Zare (shreyas@technitium.com) + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +*/ + +using System.Collections.Generic; +using TechnitiumLibrary.Net.Dns.ResourceRecords; + +namespace DnsServerCore.Dns.Zones +{ + class SecondaryCatalogSubDomainZone : SecondarySubDomainZone + { + #region constructor + + public SecondaryCatalogSubDomainZone(SecondaryZone secondaryZone, string name) + : base(secondaryZone, name) + { } + + #endregion + + #region public + + public override IReadOnlyList QueryRecords(DnsResourceRecordType type, bool dnssecOk) + { + return []; //secondary catalog zone is not queriable + } + + #endregion + } +}