diff --git a/DnsServerCore/Dns/Zones/PrimaryZone.cs b/DnsServerCore/Dns/Zones/PrimaryZone.cs index d71334b6..3a49a462 100644 --- a/DnsServerCore/Dns/Zones/PrimaryZone.cs +++ b/DnsServerCore/Dns/Zones/PrimaryZone.cs @@ -36,6 +36,7 @@ namespace DnsServerCore.Dns.Zones readonly bool _internal; readonly List _history; //for IXFR support + IReadOnlyDictionary _tsigKeys; readonly Timer _notifyTimer; bool _notifyTimerTriggered; @@ -59,6 +60,8 @@ namespace DnsServerCore.Dns.Zones else _history = new List(zoneInfo.ZoneHistory); + _tsigKeys = zoneInfo.TsigKeys; + _notifyTimer = new Timer(NotifyTimerCallback, null, Timeout.Infinite, Timeout.Infinite); _notifyList = new List(); } @@ -467,6 +470,12 @@ namespace DnsServerCore.Dns.Zones } } + public IReadOnlyDictionary TsigKeys + { + get { return _tsigKeys; } + set { _tsigKeys = value; } + } + #endregion } }