From 816eba7545562a11e804ecc658707cbc136e4e53 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sun, 28 Jun 2020 19:39:09 +0530 Subject: [PATCH] AuthZoneInfo: added GetPrimaryNameServerAddresses() and GetSecondaryNameServerAddresses(). --- DnsServerCore/Dns/Zones/AuthZoneInfo.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/DnsServerCore/Dns/Zones/AuthZoneInfo.cs b/DnsServerCore/Dns/Zones/AuthZoneInfo.cs index 32cf4510..16e0a8dc 100644 --- a/DnsServerCore/Dns/Zones/AuthZoneInfo.cs +++ b/DnsServerCore/Dns/Zones/AuthZoneInfo.cs @@ -161,6 +161,22 @@ namespace DnsServerCore.Dns.Zones } } + public IReadOnlyList GetPrimaryNameServerAddresses(DnsServer dnsServer) + { + if (_zone == null) + throw new InvalidOperationException(); + + return _zone.GetPrimaryNameServerAddresses(dnsServer); + } + + public IReadOnlyList GetSecondaryNameServerAddresses(DnsServer dnsServer) + { + if (_zone == null) + throw new InvalidOperationException(); + + return _zone.GetSecondaryNameServerAddresses(dnsServer); + } + public void WriteTo(BinaryWriter bW) { if (_zone == null)