Compacted-DNS (C-DNS): A Format for DNS Packet Capture
https://www.rfc-editor.org/rfc/rfc8618
DNS | ToolC-DNS is a space efficient file format for storing DNS traffic. It is based on CBOR with a fixed schema as defined in RFC 8618.
Some tools exist to work with C-DNS files. The dns-stats compactor can convert PCAP-to-CDNS and vice versa. It can be configured flexibly to only record those fields of the DNS message which are of interest, thus saving space in the compacted format.