dns debug log character/locale configuration

tony ennis 1 Reputation point
2021-03-17T13:33:58.223+00:00

How can I change the region/locale configuration of the DNS debug logs?

I'm noticing some extra characters which break do not play nice with a parser I use for analysing the logs. I'd rather not change the parser to support these characters but instead change the log format itself.

Currently the logs appear like this:

DNS Server log file creation at 9.3.2021 ã. 11:01:47

Log file wrap at 9.3.2021 ã. 11:01:47

...

9.3.2021 ã. 11:01:48 3870 PACKET redacted UDP Rcv redacted 7305 Q [0001 D NOERROR] A redacted

Notice the ã. in the date/time stamp as well as the date format itself (dot delimited instead of slash / ).

On other DNS servers the format is the US date-time format like this:

DNS Server log file creation at 3/17/2021 11:42:21 AM

...

3/17/2021 11:44:15 AM 0C34 PACKET redacted UDP Snd redacted 686f R Q [8385 A DR NXDOMAIN] SRV redacted

Changing the OS region locality settings does not seem to change this for some reason. Any ideas how this is applied?

Windows DHCP
Windows DHCP
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,040 questions
{count} votes

6 answers

Sort by: Most helpful
  1. Boris Pavlov 0 Reputation points
    2024-04-29T08:11:47.35+00:00

    @Shiva Prasad Gyawali

    two things (the second one is important).

    First Regional format to English US;

    second, select 'welcome screen and system accounts' checkbox (mine is done already on this picture).

    restart the computer.

    should do the trick.
    PS to clarify: it worked for me, several times.
    User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.