added ForwarderZone to provide conditional forwarding feature.

This commit is contained in:
Shreyas Zare
2020-06-06 16:07:28 +05:30
parent b3473ca897
commit 2f80f70a24

View File

@@ -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 <http://www.gnu.org/licenses/>.
*/
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
}
}