zone2json(1)

zone2json1

Convert bind zones to json

Usage

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

Overview

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

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

Options

Options

--named-conf=<PATH>

Read PATH to get the BIND configuration

--zone=<PATH>

Parse only the zone file at PATH Conflicts with --named-conf parameter.

--zone-name=<NAME>

When parsing a single zone without $ORIGIN statement, set ZONE as the zone name.

Options

--help

List all options

--on-error-resume-next

Ignore missing zone files during parsing. Dangerous.

--verbose

Be verbose during conversion.

Releases

6 releases since Debian 9 (Stretch); the text changed 5 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13
  6. Arch

Author

PowerDNS.COM BV

From powerdns 5.1.5-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.