]> git.ipfire.org Git - thirdparty/pdns.git/blob - docs/manpages/zone2json.1.rst
Merge pull request #7738 from cvdwel/patch-2
[thirdparty/pdns.git] / docs / manpages / zone2json.1.rst
1 zone2json
2 =========
3
4 Synopsis
5 --------
6
7 :program:`zone2json` {**--named-conf=**\ *PATH*, **--zone-file=**\ *PATH* [**--zone-name=**\ *NAME*]} [*OPTION*]
8
9 Description
10 -----------
11
12 :program:`zone2json` parses BIND named.conf files and zonefiles and outputs
13 JSON on standard out, which can then be fed to the PowerDNS API.
14
15 :program:`zone2json` understands the BIND master file extension ``$GENERATE``
16 and will also honour ``$ORIGIN`` and ``$TTL``.
17
18 Options
19 -------
20
21 INPUT Options
22 -------------
23
24 --named-conf=<PATH> Read *PATH* to get the BIND configuration
25 --zone=<PATH> Parse only the zone file at *PATH* Conflicts with ``--named-conf`` parameter.
26 --zone-name=<NAME> When parsing a single zone without $ORIGIN statement, set *ZONE* as the zone name.
27
28 OTHER Options
29 -------------
30
31 --help List all options
32 --on-error-resume-next Ignore missing zone files during parsing. Dangerous.
33 --verbose Be verbose during conversion.
34
35 See also
36 --------
37
38 pdns_server(1)