Skip to content

DNS Cache

Evidence: DNS Cache
Description: Collect DNS Cache
Category: Network
Platform: windows
Short Name: dnsc
Is Parsed: Yes
Sent to Investigation Hub: Yes
Collect File(s): No

The Windows DNS resolver cache stores the results of recent DNS queries to speed up subsequent lookups. The cache contains hostname-to-IP mappings for recently accessed domains and can reveal web browsing activity, malware C2 domains, and network reconnaissance.

DNS cache entries are volatile and cleared when the DNS Client service restarts or entries expire.

This collector gathers structured data about dns cache.

FieldDescriptionExample
NameDNS namewww.example.com
TypeDNS record type1 (A record)

This collector:

  • Loads DNSAPI.dll
  • Calls the undocumented DnsGetCacheDataTable function
  • Enumerates all cached DNS entries
  • Extracts hostname and record type

DNS cache reveals recent network activity and domain lookups. Investigators use this data to identify recently accessed domains, detect malware C2 domains, track web browsing activity, identify reconnaissance activity, correlate with network connections, and detect DNS tunneling or exfiltration.