SecondaryZone: updated initial interval to 5 sec for quick start. Added log entry to indicate start of refresh.

This commit is contained in:
Shreyas Zare
2020-07-04 16:33:13 +05:30
parent d15296824c
commit 84c38dd3e4

View File

@@ -34,7 +34,7 @@ namespace DnsServerCore.Dns.Zones
readonly object _refreshTimerLock = new object();
Timer _refreshTimer;
const int REFRESH_TIMER_INTERVAL = 10000;
const int REFRESH_TIMER_INTERVAL = 5000;
const int REFRESH_SOA_TIMEOUT = 10000;
const int REFRESH_AXFR_TIMEOUT = 300000;
@@ -193,6 +193,12 @@ namespace DnsServerCore.Dns.Zones
{
try
{
{
LogManager log = _dnsServer.LogManager;
if (log != null)
log.Write("DNS Server has started zone refresh for secondary zone: " + _name);
}
DnsClient client = new DnsClient(primaryNameServers);
client.Timeout = REFRESH_SOA_TIMEOUT;
client.Retries = REFRESH_RETRIES;