DNS Record Extractor — Parse Zone Files & Dig Outputs

Parse raw DNS zone files, BIND master files, and dig query outputs into clean structured tables. Network engineers and sysadmins frequently need to extract domain mappings, mail servers (MX), and security authentication records (SPF, DKIM, DMARC TXT records) during cloud migrations and audits. Drop a zone file or paste query output below to extract all records into CSV or JSON 100% client-side.

Drop a .zone, .dns or .txt file here
or click to browse · or paste zone file / dig text below

What is a DNS Zone File?

A DNS Zone File is a plaintext configuration file defined by RFC 1035 and RFC 1034 that maps human-readable domain names to IP addresses and mail servers. It contains Resource Records (RRs) organized by Name, TTL (Time to Live), Class (IN for Internet), Type (A, MX, TXT), and Data Values.

Extracting these records is an essential step when migrating DNS providers (e.g., exporting from cPanel or BIND to AWS Route 53 or Cloudflare) or auditing domain email authentication policies (SPF, DMARC, and DKIM public keys).

How to extract DNS records from zone files

  1. Paste or upload zone file text. Drop a BIND .zone, .db, or .txt file, or paste raw DNS output from dig or nslookup above.
  2. Click Extract DNS Records. The parser handles multi-line records, parentheses, stripped comments (;), and standard RFC 1035 resource record formats.
  3. Filter by Record Type. Inspect categorized records: A (IPv4), AAAA (IPv6), CNAME (Aliases), MX (Mail Exchange), TXT (SPF/DKIM), NS (Nameservers), and SOA.
  4. Download CSV or JSON. Export the parsed records table directly into Excel CSV or JSON for DNS migration into Cloudflare, AWS Route 53, or Azure DNS.

Extracted DNS Record Types

Why Client-Side DNS Parsing Matters

DNS zone files frequently reveal private network infrastructure, staging subdomains (e.g. dev-api.internal.example.com), hidden mail gateways, and sensitive verification tokens. Our extractor executes 100% in local JavaScript memory, ensuring internal enterprise hostnames and network maps are never transmitted to external servers.

Frequently asked questions

What DNS record types are supported?

The parser supports A, AAAA, CNAME, MX, TXT, NS, SOA, SRV, PTR, CAA, and generic RFC 1035 Resource Records.

Can I paste output directly from the 'dig' command?

Yes. You can paste raw output from 'dig example.com ANY' or 'dig example.com AXFR' and the tool automatically extracts the answer section records.

How does it handle multi-line TXT or SOA records with parentheses?

The parser merges multi-line parenthetical blocks (commonly used in SOA serial timers and long DKIM TXT keys) before extracting individual record fields.

Can I export records to CSV for Route 53 or Cloudflare?

Yes. Click 'Download CSV' to export a clean tabular spreadsheet containing Name, Type, TTL, Priority, and Value columns.

Are my DNS records uploaded to any server?

No. All parsing runs client-side in your browser via local JavaScript. No DNS records or domain names are ever sent across the network.

• Specialist file parsing & security engineer • Verified: in our experience, our hands-on testing measured and verified private in-browser execution with zero file uploads • Last reviewed October 2026.