TechnitiumSoftware / DnsServer

Technitium DNS Server
https://technitium.com/dns/
GNU General Public License v3.0
4.25k stars 418 forks source link

Bug: Log crashes with 'Use Local Time' enabled #286

Closed shawnkhall closed 3 years ago

shawnkhall commented 3 years ago

A few days ago I changed the logs to Use Local Time on Technitium DNS Server 6.3 so I could better automate log parsing. Since then, at UTC 0 every day, the log goes haywire. EVERY single log entry as of 19:00 local time (UTC-5) requires the log to close and reopen.

You can see how this happens at exactly 19:00 in the log excerpt below, even several times per second. At first I thought it was just a one-off, but it's done this all three days now at exactly 19:00. At midnight/24:00, when the log rotates to the next date, the Stopped/Started insanity ends and it just opens the log once, until 19:00 that day.

The problem persists after restarting the service.

Disabling Use Local Time does revert to the original behavior where the log is only opened/closed on service restart.

[2021-08-08 18:59:05 Local] [x.x.x.x:29688] [UDP] QNAME: update.vivaldi.com; QTYPE: A; QCLASS: IN; RCODE: NoError; ANSWER: [31.209.137.5] [2021-08-08 18:59:20 Local] [x.x.x.x:22686] [UDP] QNAME: datarouter-prod.ak.epicgames.com; QTYPE: A; QCLASS: IN; RCODE: NoError; ANSWER: [datarouter-svc-prod06-pub-ak-1156843745.us-east-1.elb.amazonaws.com., 35.174.58.3, 52.201.28.211, 54.91.27.60, 3.218.112.240, 3.226.118.88, 23.20.161.247] [2021-08-08 18:59:25 Local] [x.x.x.x:36230] [UDP] QNAME: usa01-appsflyer-report.honkaiimpact3.com; QTYPE: A; QCLASS: IN; RCODE: NoError; ANSWER: [18.191.47.98] [2021-08-08 19:00:09 Local] Logging stopped. [2021-08-08 19:00:09 Local] Logging started. [2021-08-08 19:00:09 Local] [x.x.x.x:29852] [UDP] QNAME: www.reddit.com; QTYPE: A; QCLASS: IN; RCODE: NoError; ANSWER: [reddit.map.fastly.net., x.x.x.x.65.140, x.x.x.x.129.140, x.x.x.x.193.140, x.x.x.x.1.140] [2021-08-08 19:00:13 Local] Logging stopped. [2021-08-08 19:00:13 Local] Logging started. [2021-08-08 19:00:13 Local] [x.x.x.x:44595] [UDP] QNAME: catalog-public-service-prod.ak.epicgames.com; QTYPE: A; QCLASS: IN; RCODE: NoError; ANSWER: [catalogv2-svc-prod06-pub-ak-293445670.us-east-1.elb.amazonaws.com., 34.194.195.113, 52.1.168.11] [2021-08-08 19:00:13 Local] Logging stopped. [2021-08-08 19:00:13 Local] Logging started. [2021-08-08 19:00:13 Local] [x.x.x.x:8464] [UDP] QNAME: priceengine-public-service-ecomprod01.ol.epicgames.com; QTYPE: A; QCLASS: IN; RCODE: NoError; ANSWER: [priceengine-ecomprod01-pub-2131700027.us-east-1.elb.amazonaws.com., 54.208.217.12, 52.0.37.163, 52.54.213.123, 52.72.166.141, 52.203.254.147, 54.91.252.242] [2021-08-08 19:00:20 Local] Logging stopped. [2021-08-08 19:00:20 Local] Logging started.

ShreyasZare commented 3 years ago

Thanks for the bug report. Will get that fixed in upcoming update this weekend.

ShreyasZare commented 3 years ago

New update v6.4 is now available which fixes this issue.