diff --git a/DnsServerCore/Dns/ZoneManagers/AuthZoneManager.cs b/DnsServerCore/Dns/ZoneManagers/AuthZoneManager.cs index 6c354373..fe224605 100644 --- a/DnsServerCore/Dns/ZoneManagers/AuthZoneManager.cs +++ b/DnsServerCore/Dns/ZoneManagers/AuthZoneManager.cs @@ -549,6 +549,14 @@ namespace DnsServerCore.Dns.ZoneManagers return records; } + public IReadOnlyList GetRecords(string domain, DnsResourceRecordType type) + { + if (_root.TryGet(domain, out AuthZone zone)) + return zone.GetRecords(type); + + return Array.Empty(); + } + public IReadOnlyList QueryRecords(string domain, DnsResourceRecordType type) { if (_root.TryGet(domain, out AuthZone zone))