mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2025-12-22 09:29:50 +00:00
AuthZoneTree: added GetApexZone() method.
This commit is contained in:
@@ -661,6 +661,14 @@ namespace DnsServerCore.Dns.Trees
|
||||
return null;
|
||||
}
|
||||
|
||||
public ApexZone GetApexZone(string zoneName)
|
||||
{
|
||||
if (TryGet(zoneName, out AuthZoneNode authZoneNode))
|
||||
return authZoneNode.ApexZone;
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public AuthZone FindZone(string domain, out SubDomainZone closest, out SubDomainZone delegation, out ApexZone authority, out bool hasSubDomains)
|
||||
{
|
||||
byte[] key = ConvertToByteKey(domain);
|
||||
|
||||
Reference in New Issue
Block a user