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-conf parameter. pick a lane, you can't have both.
  • --zone-name=<NAME> β€” when you're parsing a single zone and there's no $ORIGIN statement to be found, this sets ZONE as 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


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