AuthZoneInfo: added app zone support.

This commit is contained in:
Shreyas Zare
2021-02-27 19:25:14 +05:30
parent 20ccce2093
commit 14cbaffb83

View File

@@ -1,6 +1,6 @@
/*
Technitium DNS Server
Copyright (C) 2020 Shreyas Zare (shreyas@technitium.com)
Copyright (C) 2021 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
@@ -32,7 +32,8 @@ namespace DnsServerCore.Dns.Zones
Primary = 1,
Secondary = 2,
Stub = 3,
Forwarder = 4
Forwarder = 4,
Application = 5
}
public sealed class AuthZoneInfo : IComparable<AuthZoneInfo>
@@ -97,6 +98,8 @@ namespace DnsServerCore.Dns.Zones
_type = AuthZoneType.Stub;
else if (_zone is ForwarderZone)
_type = AuthZoneType.Forwarder;
else if (_zone is ApplicationZone)
_type = AuthZoneType.Application;
else
_type = AuthZoneType.Unknown;