1ZONE2SQL(8) System Manager's Manual ZONE2SQL(8)
2
3
4
6 zone2sql - Convert ISC Bind zones to SQL
7
9 zone2sql [OPTIONS]
10
12 Zone2sql parses Bind named.conf files and zonefiles and outputs SQL on
13 standard out, which can then be fed to your database.
14
15 zone2sql understands the Bind master file extension '$GENERATE' and
16 will also honour '$ORIGIN' and '$TTL'.
17
18 For backends supporting slave operation (currently only the PostgreSQL
19 backend), there is also an option to keep slave zones as slaves, and
20 not convert them to native operation.
21
22 By default, zone2sql outputs code suitable for the mysqlbackend, but it
23 can also generate SQL for the Generic PostgreSQL and Oracle backends.
24
26 Input options:
27
28 --named-conf=<filename>
29 Read <filename> to get the bind configuration
30
31 --zone=<zone-file>
32 Parse only this zone file. Conflicts with --named-conf parame‐
33 ter.
34
35 --zone-name=<name>
36 When parsing a single zone without $ORIGIN statement, set this
37 as the zone name.
38
39 Output options:
40
41 --bare Output in a bare format, suitable for further parsing. The out‐
42 put is formatted as follows:
43 domain_id<TAB>'qname'<TAB>'qtype'<TAB>'content'<TAB>prio<TAB>ttl
44
45 --gmysql
46 Output in format suitable for the default configuration of the
47 Generic MySQL backend.
48
49 --gpgsql
50 Output in format suitable for the default configuration of the
51 Generic PostgreSQL backend.
52
53 --mysql
54 Output in format suitable for the default configuration of the
55 MySQL backend (the default output format).
56
57 --oracle
58 Output in format suitable for the default configuration of the
59 Generic Oracle backend.
60
61 --startid=<id>
62 Use <id> as the forst domain_id generated (defaults to 0).
63
64 --transactions
65 For Oracle and PostgreSQL output, wrap each domain in a transac‐
66 tion for higher speed and integrity.
67
68 Other options:
69
70 --slave
71 Maintain slave status of zones listed in named.conf as being
72 slaves. The default behaviour is to convert all zones to native
73 operation.
74
75 --on-error-resume-next
76 Ignore missing files during parsing. Dangerous.
77
78 --help List all options
79
80 --verbose
81 Be verbose during conversion.
82
84 pdns_server(8)
85
86
87
88PowerDNS December 2002 ZONE2SQL(8)