Overview
The DNSCache command enumerates DNS resolver cache entries, revealing recently resolved hostnames and IP addresses. This provides insight into recent network activity and can identify interesting targets for lateral movement or data exfiltration destinations.Syntax
Remote Execution
Output
Returns DNS cache entries including:- Hostname/FQDN
- IP address(es)
- Record type (A, AAAA, CNAME, etc.)
- Time to live (TTL)
- Data length
Use Cases
- Red Team
- Blue Team
- Discover internal infrastructure
- Identify recently accessed systems
- Find file servers, databases, web servers
- Map network topology
- Locate data exfiltration targets
- Discover domain controllers
Example Output
Remote Execution
This command supports remote execution using the
-computername parameter.Detection Considerations
Related Commands
- ARPTable - ARP cache entries
- TcpConnections - Active TCP connections
- NetworkProfiles - Network profiles
- NetworkShares - Network shares