mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-10 18:56:26 +00:00
AuthZoneInfo: added app zone support.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user