What are those DNS query's which Sysmon does not get from Windows

Nazakat Ali 61 Reputation points
2020-12-16T04:59:04.763+00:00

please tell me about those DNS query's which Sysmon does not get from Windows

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Windows for business | Windows Client for IT Pros | Devices and deployment | Configure application groups
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2020-12-16T06:05:30.047+00:00

    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:

    48641-image.png

    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.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2020-12-17T04:40:06.417+00:00

    Hi ,

    It can monitor the DNS queries executed by practically any Windows client software that is network-enabled, for instance web browsers, FileZilla, WinSCP, ping, tracert, etc. However, it should be noted that direct DNS lookups using nslookup are not logged by Sysmon’s DNS Query logging.

    Best Regards,

    Candy

    1 person found this answer helpful.
    0 comments No comments

  2. Nazakat Ali 61 Reputation points
    2020-12-17T04:20:11.293+00:00

    Candyluo-MSET

    Hi,

    Thanks for input. But my Sysmon does not register DNS queries fired using nslookup in command prompt. can some
    else also confirm?

    0 comments No comments

  3. Nazakat Ali 61 Reputation points
    2020-12-17T06:03:51.76+00:00

    Thanks a lot for prompt response. It was helpful. There is another situation we faced. A malicious code was querying a
    hard-coded DNS server instead of system DNS even that was not registering with system. We could see the queries
    at the network level (Packetbeat logs). Can you please throw some light on it?


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.