ZONE2JSON(1) PowerDNS Authoritative Server ZONE2JSON(1)

# [NAME](#NAME)

zone2json - convert BIND zones to JSON

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#DESCRIPTION)

**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)

# [INPUT OPTIONS](#INPUT_OPTIONS)

[**--named-conf=**&lt;PATH&gt;****](#named)

Read *PATH* to get the BIND configuration

[**--zone=**&lt;PATH&gt;****](#zone)

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

[**--zone-name=**&lt;NAME&gt;****](#zone~2)

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

# [OTHER OPTIONS](#OTHER_OPTIONS)

[**--help**](#help)

List all options

[**--on-error-resume-next**](#on)

Ignore missing zone files during parsing. Dangerous.

[**--verbose**](#verbose)

Be verbose during conversion.

# [SEE ALSO](#SEE_ALSO)

[pdns\_server(1)](/man/enterprise-packages/pdns-5.4/pdns_server.1)

# [AUTHOR](#AUTHOR)

PowerDNS.COM BV

# [COPYRIGHT](#COPYRIGHT)

PowerDNS.COM BV

October 16, 2026

---

Document: zone2json(1) from pdns-5.4 5.4.7-r4 (Chainguard OS)
Source: https://github.com/PowerDNS/pdns
