DNS Zone File Validator & Converter Online
Validate BIND zone files, convert BIND ↔ JSON ↔ CSV (Cloudflare, Route 53), diff a zone against live DNS and check NS delegation and DNSSEC.
Result
Press “Run” to see the result.
validate / parse read a BIND zone file ($ORIGIN, $TTL, parentheses, relative names, TTL units like 1h / 2w; $INCLUDE and $GENERATE are refused) and check it: SOA and apex NS, CNAME next to other data or at the apex, MX / NS / SRV pointing to a CNAME or an IP, in-zone NS without glue, targets without addresses, RRsets with different TTLs, duplicates, SOA timers (RFC 1912), TXT strings over 255 bytes, several SPF records, SPF over 10 DNS lookups, +all, DMARC syntax, CAA tags, private IPs, out-of-zone names, very low / high TTLs. parse also returns the records as JSON.
convert turns BIND, JSON (also Cloudflare API exports with priority fields and Route 53 record sets) or CSV into json, bind (relative names), csv, cloudflare (BIND import file without SOA / apex NS) or route53 (ChangeResourceRecordSets batch). diff queries every name / type of the zone over DNS-over-HTTPS (1.1.1.1, up to 100 RRsets) and shows what matches, differs or is missing live — useful before moving DNS to another provider.
delegation (send domain) compares the registry nameservers (RDAP) with the zone NS set, resolves every nameserver, flags lame or single nameservers and nameservers in one /24 (RFC 2182), shows the SOA and checks DNSSEC: DS ↔ DNSKEY key tags and digests are recomputed locally, and the validation status comes from a validating resolver. Workers can only use DNS over HTTPS, so glue at the registry, per-nameserver SOA serials and zone transfers cannot be checked.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/dns-zone" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"validate","zone":"$ORIGIN example.com.\n$TTL 3600\n@ IN SOA ns1.example.com. hostmaster.example.com. 2026111601 7200 900 1209600 300\n IN NS ns1.example.com.\n IN NS ns2.example.net.\n IN MX 10 mail\n@ IN TXT \"v=spf1 mx include:_spf.google.com ~all\"\nns1 IN A 203.0.113.53\nmail IN CNAME mx.provider.net.\nwww IN CNAME @\nwww IN TXT \"verify=1\"\n"}'const res = await fetch('https://apibox.io.vn/v1/dns-zone', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"action": "validate",
"zone": "$ORIGIN example.com.\n$TTL 3600\n@ IN SOA ns1.example.com. hostmaster.example.com. 2026111601 7200 900 1209600 300\n IN NS ns1.example.com.\n IN NS ns2.example.net.\n IN MX 10 mail\n@ IN TXT \"v=spf1 mx include:_spf.google.com ~all\"\nns1 IN A 203.0.113.53\nmail IN CNAME mx.provider.net.\nwww IN CNAME @\nwww IN TXT \"verify=1\"\n"
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/dns-zone",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"action": "validate", "zone": "$ORIGIN example.com.\n$TTL 3600\n@ IN SOA ns1.example.com. hostmaster.example.com. 2026111601 7200 900 1209600 300\n IN NS ns1.example.com.\n IN NS ns2.example.net.\n IN MX 10 mail\n@ IN TXT \"v=spf1 mx include:_spf.google.com ~all\"\nns1 IN A 203.0.113.53\nmail IN CNAME mx.provider.net.\nwww IN CNAME @\nwww IN TXT \"verify=1\"\n"},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/dns-zone');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"action":"validate","zone":"$ORIGIN example.com.\\n$TTL 3600\\n@ IN SOA ns1.example.com. hostmaster.example.com. 2026111601 7200 900 1209600 300\\n IN NS ns1.example.com.\\n IN NS ns2.example.net.\\n IN MX 10 mail\\n@ IN TXT \\"v=spf1 mx include:_spf.google.com ~all\\"\\nns1 IN A 203.0.113.53\\nmail IN CNAME mx.provider.net.\\nwww IN CNAME @\\nwww IN TXT \\"verify=1\\"\\n"}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
Which zone formats are accepted?
BIND / RFC 1035 master files, JSON arrays of {name, ttl, type, data} (Cloudflare API export and Route 53 record sets too) and CSV with name, type and data / value / content columns.
Can it check SOA serials on each nameserver?
No. Cloudflare Workers cannot send UDP / TCP port 53 queries; only DNS-over-HTTPS through a public resolver is available.
Does it try a zone transfer (AXFR)?
No, never: zone transfers of third-party domains are reconnaissance. Send your own zone file instead.