DOKK / manpages / debian 10 / pdns-server / zone2json.1.en
ZONE2JSON(1) PowerDNS Recursor ZONE2JSON(1)

zone2json -

zone2json - convert BIND zones to JSON

zone2json {--named-conf=PATH, --zone-file=PATH [--zone-name=NAME]} [OPTION]

zone2json parses Bind named.conf files and zonefiles and outputs JSON on standard out, which can then be fed to the PowerDNS API.

zone2json understands the Bind master file extension $GENERATE and will also honour $ORIGIN and $TTL.

Read PATH to get the bind configuration
Parse only the zone file at PATH Conflicts with --named-conf parameter.
When parsing a single zone without $ORIGIN statement, set ZONE as the zone name.

List all options
Ignore missing zone files during parsing. Dangerous.
Be verbose during conversion.

pdns_server(1)

PowerDNS.COM BV

2001-2018, PowerDNS.COM BV

January 31, 2019 4.1