Skip to content
WETNav
DNS clientName Resolution

Event ID 3020: DNS query response returned

Written when the DNS Client returns the response for a query on a network interface, with the status and the results. Newer event versions also record the requesting process ID in the event data.

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
StatusResult code for the response: 0 success, 9003 name does not exist, 9501 no records of that type
QueryResultsAnswers returned for the query
ClientPIDProcess ID of the process that asked; present in event version 1 and later
InterfaceIndexIndex of the network interface the response applies to
Have one of these events? Paste it into the decoder

Analyst notes

  • 01Where the event version includes ClientPID, 3020 names the requesting process in its own data, which is easier to work with than the System-section ProcessID used for 3006 and 3008.
  • 02One lookup can produce more than one 3020, for example across interfaces; deduplicate on QueryName, ClientPID and time before counting.
  • 03Use QueryResults to see which address a suspicious name resolved to, then pivot to Sysmon 3 or firewall logs for the connection that followed.

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=3020)]]" -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 3020 mean?
Written when the DNS Client returns the response for a query on a network interface, with the status and the results. Newer event versions also record the requesting process ID in the event data. It is written to the DNS Client Operational log (Microsoft-Windows-DNS-Client/Operational).
Is event 3020 logged by default?
No. It must be enabled before it is recorded.
Where is event 3020 recorded?
In the Microsoft-Windows-DNS-Client/Operational channel on the any host.

Written when the DNS Client returns the response for a query on a network interface, with the status and the results. Newer event versions also record the requesting process ID in the event data. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.