AuthZoneTree: added GetApexZone() method.

This commit is contained in:
Shreyas Zare
2024-09-21 12:31:37 +05:30
parent 89a33f1f0d
commit bc4b65e2c3

View File

@@ -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);