Hi ,
Once Sysmon is started, it will begin logging all DNS Query events to Applications and Services Logs/Microsoft/Windows/Sysmon/Operational in the Event Viewer. This is done via event ID 22. This event generates when a process executes a DNS query, whether the result is successful or fails, cached or not.
Here is a simple "ping google.com" command, resulting in event 22 being logged in the Sysmon Windows event log:
For more details about Sysmon, you can refer to the following link:
https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon
Best Regards,
Candy
--------------------------------------------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.