LibraryActive

mitmproxy.dns

DNS data structures and serialization for mitmproxy, including Question and ResourceRecord classes.

Open source page

Field note

What it does

mitmproxy.dns is a Python module providing dataclasses for DNS questions and resource records, with JSON serialization for mitmweb and support for various record types such as A, AAAA, CNAME, TXT, and HTTPS.

Capabilities

Available capabilities

Tags

Tags

Ways to use it

Ways to use it

No integrations filed yet.

Product features

Product features

JSON serialization

Convert Question and ResourceRecord to/from JSON for mitmweb.

Question dataclass

Represents a DNS question with name, type, and class.

Record type accessors

Properties for accessing IPv4, IPv6, domain name, text, HTTPS ALPN, and ECH data.

ResourceRecord dataclass

Represents a DNS resource record with name, type, class, TTL, and data.