From c1a30ce5a006cb656d7ff34a5cecc9217b3efd76 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 14 May 2022 13:35:59 +0530 Subject: [PATCH] AuthZoneInfo: added notify failed and sync failed properties. --- 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 adbdb9f3..1bfb67d0 100644 --- a/DnsServerCore/Dns/Zones/AuthZoneInfo.cs +++ b/DnsServerCore/Dns/Zones/AuthZoneInfo.cs @@ -58,6 +58,9 @@ namespace DnsServerCore.Dns.Zones readonly IReadOnlyDictionary _tsigKeyNames; readonly IReadOnlyCollection _dnssecPrivateKeys; + readonly bool _notifyFailed; //not serialized + readonly bool _syncFailed; //not serialized + #endregion #region constructor @@ -243,6 +246,8 @@ namespace DnsServerCore.Dns.Zones _tsigKeyNames = primaryZone.TsigKeyNames; _dnssecPrivateKeys = primaryZone.DnssecPrivateKeys; + + _notifyFailed = primaryZone.NotifyFailed; } else if (_apexZone is SecondaryZone secondaryZone) { @@ -253,11 +258,16 @@ namespace DnsServerCore.Dns.Zones _expiry = secondaryZone.Expiry; _tsigKeyNames = secondaryZone.TsigKeyNames; + + _notifyFailed = secondaryZone.NotifyFailed; + _syncFailed = secondaryZone.SyncFailed; } else if (_apexZone is StubZone stubZone) { _type = AuthZoneType.Stub; _expiry = stubZone.Expiry; + + _syncFailed = stubZone.SyncFailed; } else if (_apexZone is ForwarderZone) { @@ -669,6 +679,12 @@ namespace DnsServerCore.Dns.Zones public IReadOnlyCollection DnssecPrivateKeys { get { return _dnssecPrivateKeys; } } + public bool NotifyFailed + { get { return _notifyFailed; } } + + public bool SyncFailed + { get { return _syncFailed; } } + #endregion } }