PrimaryZone: added tsig support.

This commit is contained in:
Shreyas Zare
2021-07-31 17:02:24 +05:30
parent 5291d393db
commit 84cd671712

View File

@@ -36,6 +36,7 @@ namespace DnsServerCore.Dns.Zones
readonly bool _internal;
readonly List<DnsResourceRecord> _history; //for IXFR support
IReadOnlyDictionary<string, string> _tsigKeys;
readonly Timer _notifyTimer;
bool _notifyTimerTriggered;
@@ -59,6 +60,8 @@ namespace DnsServerCore.Dns.Zones
else
_history = new List<DnsResourceRecord>(zoneInfo.ZoneHistory);
_tsigKeys = zoneInfo.TsigKeys;
_notifyTimer = new Timer(NotifyTimerCallback, null, Timeout.Infinite, Timeout.Infinite);
_notifyList = new List<NameServerAddress>();
}
@@ -467,6 +470,12 @@ namespace DnsServerCore.Dns.Zones
}
}
public IReadOnlyDictionary<string, string> TsigKeys
{
get { return _tsigKeys; }
set { _tsigKeys = value; }
}
#endregion
}
}