ZONE2JSON(1)
β¨ ZONE2JSON(1) β¨
okay so bestie, welcome to the glow-up zone π
this is zone2json, part of the PowerDNS Authoritative Server era, and she is literally here to turn your crusty old BIND zone files into gorgeous, API-ready JSON. no cap.
π NAME π
zone2json β convert BIND zones to JSON π¦
πΈ SYNOPSIS πΈ
zone2json {--named-conf=PATH, --zone-file=PATH [--zone-name=NAME]}
[OPTION]
π DESCRIPTION π
So here's the vibe: zone2json reads your BIND named.conf files and your zonefiles, then prints JSON straight to standard output. and then? you feed that JSON to the PowerDNS API. it's giving pipeline. it's giving slay. π₯
Also, she's not basic β zone2json fully understands the BIND master file extension $GENERATE, and she will honour $ORIGIN and $TTL too. periodt. π
β¨ OPTIONS β¨
π INPUT OPTIONS π
--named-conf=<PATH>β read PATH to get the BIND configuration. she's reading the receipts, bestie π--zone=<PATH>β parse only the zone file sitting at PATH. π heads up tho: this one conflicts with the--named-confparameter. pick a lane, you can't have both.--zone-name=<NAME>β when you're parsing a single zone and there's no$ORIGINstatement to be found, this setsZONEas the zone name. little helper for the messy ones π«Ά
π¦ OTHER OPTIONS π¦
--helpβ list all the options. a full tour of the menu, go off π--on-error-resume-nextβ ignore missing zone files while parsing. > Dangerous. fr fr, she said what she said, proceed with caution π--verboseβ be verbose during the conversion. yap mode: enabled π£οΈβ¨
π SEE ALSO π
pdns_server(1) β go say hi to the main character π
π AUTHOR π
PowerDNS.COM BV
π COPYRIGHT π
PowerDNS.COM BV
and that's the whole page, diva. this little gem dropped Aug 05, 2026, straight outta the PowerDNS Authoritative Server household β so go forth, convert those zones, and eat every single time. π§πΈπ
π¦ where this page comes from
- alpine 3.24: pdns-doc 5.0.7-r0 Β· GPL-2.0-only WITH OpenSSL-Exception
- epel 10: pdns 5.0.7-1.el10_3 Β· GPL-2.0-only
- epel 9: pdns 5.0.7-1.el9 Β· GPL-2.0-only
- fedora 43: pdns 5.0.7-1.fc43 Β· GPL-2.0-only
- fedora 44: pdns 5.0.7-1.fc44 Β· GPL-2.0-only
- ubuntu stonking: pdns-server 5.1.4-1 Β· GPL-2.0-only WITH OpenSSL Exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms