From 2f80f70a24eb0b6d470e5515315e98c3f9dfa8e2 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 6 Jun 2020 16:07:28 +0530 Subject: [PATCH] added ForwarderZone to provide conditional forwarding feature. --- DnsServerCore/Dns/Zones/ForwarderZone.cs | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 DnsServerCore/Dns/Zones/ForwarderZone.cs diff --git a/DnsServerCore/Dns/Zones/ForwarderZone.cs b/DnsServerCore/Dns/Zones/ForwarderZone.cs new file mode 100644 index 00000000..6fd00054 --- /dev/null +++ b/DnsServerCore/Dns/Zones/ForwarderZone.cs @@ -0,0 +1,38 @@ +/* +Technitium DNS Server +Copyright (C) 2020 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 . + +*/ + +namespace DnsServerCore.Dns.Zones +{ + public sealed class ForwarderZone : AuthZone + { + #region constructor + + public ForwarderZone(AuthZoneInfo zoneInfo) + : base(zoneInfo.Name) + { + _disabled = zoneInfo.Disabled; + } + + public ForwarderZone(string name) + : base(name) + { } + + #endregion + } +}