Skip to content
WETNav
DNS clientName Resolution

Event ID 3008: DNS query completed

Written when a DNS Client query finishes, recording the name, the record type, the status and the answers returned. The closest built-in equivalent of Sysmon event 22.

Channel
Microsoft-Windows-DNS-Client/Operational
Logged by default
No
Written on
Any host
Volume
Very high
Provider
Microsoft-Windows-DNS-Client
Needs a SACL
No

To have this event

  • Off by default. Enable with: wevtutil sl Microsoft-Windows-DNS-Client/Operational /e:true
  • Very high volume; size the channel or forward it with filtering

Key fields

Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.

QueryNameName that was resolved
QueryTypeDNS record type as a number: 1 A, 28 AAAA, 5 CNAME, 12 PTR, 15 MX, 16 TXT, 33 SRV
QueryStatusResult code: 0 success, 9003 name does not exist (NXDOMAIN), 9501 no records of that type, 1460 timeout
QueryResultsAnswers returned, as a semicolon-separated list of addresses, with 'type: N name' entries for other record types such as CNAME
QueryOptionsBit flags the caller passed to the resolver
Have one of these events? Paste it into the decoder

Analyst notes

  • 013008 has no process field; the requesting process is the ProcessID in the event's System section. That is how lookups are tied to a process on hosts without Sysmon; resolve the PID through 4688 or EDR data from the same period.
  • 02Bursts of QueryStatus 9003 (NXDOMAIN) for random-looking names from one process are the DGA pattern; long encoded labels under one domain, or heavy TXT traffic, suggest DNS tunnelling.
  • 03Only lookups made through the Windows resolver appear. nslookup.exe, tools that send raw DNS packets and applications using their own DNS over HTTPS bypass it, so absence of a lookup here does not prove the name was never resolved.
  • 04The channel is off by default and records every lookup on the host, so it must be enabled, sized and collected in advance.

Pull this event

Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.

Get-WinEvent -LogName 'Microsoft-Windows-DNS-Client/Operational' -FilterXPath "*[System[(EventID=3008)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.

ATT&CK mapping

Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.

Common questions

What does Windows event ID 3008 mean?
Written when a DNS Client query finishes, recording the name, the record type, the status and the answers returned. The closest built-in equivalent of Sysmon event 22. It is written to the DNS Client Operational log (Microsoft-Windows-DNS-Client/Operational).
Is event 3008 logged by default?
No. It must be enabled before it is recorded.
Where is event 3008 recorded?
In the Microsoft-Windows-DNS-Client/Operational channel on the any host.

Written when a DNS Client query finishes, recording the name, the record type, the status and the answers returned. The closest built-in equivalent of Sysmon event 22. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.