packet_extract_dns
Extract and parse DNS queries and responses from PCAP/PCAPng captures, aggregating query counts, unique domain rankings, and transaction details.
Instructions
Extracts and parses DNS queries and responses (RFC 1035) with label pointer loop protection. Aggregates query counts, unique domain rankings, and transaction details (A, AAAA, CNAME, TXT, MX, PTR).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Base64-encoded PCAP file bytes (max 10MB). | |
| limit | No | Maximum number of DNS transactions to return (default: 50, max: 200). | |
| filePath | No | Absolute path to a PCAP file on disk (local stdio only). | |
| queryType | No | Optional query type filter (e.g. 'A', 'AAAA', 'TXT', 'CNAME'). |