From 84c38dd3e4dfeb290677f3be635ac1da6ebb1b1a Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 4 Jul 2020 16:33:13 +0530 Subject: [PATCH] SecondaryZone: updated initial interval to 5 sec for quick start. Added log entry to indicate start of refresh. --- DnsServerCore/Dns/Zones/SecondaryZone.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/DnsServerCore/Dns/Zones/SecondaryZone.cs b/DnsServerCore/Dns/Zones/SecondaryZone.cs index 9fae90a7..41680c7f 100644 --- a/DnsServerCore/Dns/Zones/SecondaryZone.cs +++ b/DnsServerCore/Dns/Zones/SecondaryZone.cs @@ -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;