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
- Paste or upload zone file text. Drop a BIND .zone, .db, or .txt file, or paste raw DNS output from dig or nslookup above.
- Click Extract DNS Records. The parser handles multi-line records, parentheses, stripped comments (;), and standard RFC 1035 resource record formats.
- Filter by Record Type. Inspect categorized records: A (IPv4), AAAA (IPv6), CNAME (Aliases), MX (Mail Exchange), TXT (SPF/DKIM), NS (Nameservers), and SOA.
- 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
- A & AAAA Records: IPv4 (32-bit) and IPv6 (128-bit) host address bindings.
- CNAME Records: Canonical domain name aliases and CDN routing hostnames.
- MX Records: Mail exchange servers with explicit preference priority metrics.
- TXT Records: SPF sender policy rules, DKIM domain keys, DMARC reporting policies, and Google/Microsoft domain verification strings.
- NS & SOA Records: Authoritative nameservers, zone serial numbers, refresh timers, and admin contact email addresses.
- SRV & PTR Records: Service location port mappings and reverse DNS pointer lookups.
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.