mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2025-12-29 13:00:35 +00:00
AuthZoneManager: added GetRecords() method to directly get the records without querying.
This commit is contained in:
@@ -549,6 +549,14 @@ namespace DnsServerCore.Dns.ZoneManagers
|
||||
return records;
|
||||
}
|
||||
|
||||
public IReadOnlyList<DnsResourceRecord> GetRecords(string domain, DnsResourceRecordType type)
|
||||
{
|
||||
if (_root.TryGet(domain, out AuthZone zone))
|
||||
return zone.GetRecords(type);
|
||||
|
||||
return Array.Empty<DnsResourceRecord>();
|
||||
}
|
||||
|
||||
public IReadOnlyList<DnsResourceRecord> QueryRecords(string domain, DnsResourceRecordType type)
|
||||
{
|
||||
if (_root.TryGet(domain, out AuthZone zone))
|
||||
|
||||
Reference in New Issue
Block a user