Event ID 3006: DNS query called
Written when a process asks the Windows DNS Client to resolve a name, before any answer. Records the name, the record type, the query options and the DNS servers that will be used.
- 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.
| Field | What it tells you |
|---|---|
| QueryName | Name being resolved |
| QueryType | DNS record type as a number: 1 A, 28 AAAA, 5 CNAME, 12 PTR, 15 MX, 16 TXT, 33 SRV |
| QueryOptions | Bit flags the caller passed to the resolver |
| ServerList | DNS servers the query will be sent to |
Analyst notes
- 013006 marks the start of a lookup and 3008 its completion. For triage 3008 is usually the better event because it carries the answer and the status.
- 02There is no process field in the event data; the requesting process is the ProcessID in the event's System section, as with 3008.
- 03Long or random-looking QueryName values, very frequent lookups of one domain, and TXT queries from processes that do not normally use DNS are classic tunnelling and C2 traits.
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=3006)]]" -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.
Related events
Common questions
- What does Windows event ID 3006 mean?
- Written when a process asks the Windows DNS Client to resolve a name, before any answer. Records the name, the record type, the query options and the DNS servers that will be used. It is written to the DNS Client Operational log (Microsoft-Windows-DNS-Client/Operational).
- Is event 3006 logged by default?
- No. It must be enabled before it is recorded.
- Where is event 3006 recorded?
- In the Microsoft-Windows-DNS-Client/Operational channel on the any host.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderWritten when a process asks the Windows DNS Client to resolve a name, before any answer. Records the name, the record type, the query options and the DNS servers that will be used. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.