OS Manuals

/usr/bin/zone2sql

PowerDNS Authoritative Server without libsodium

From pdns-5.4-nosodium 5.4.9-r1 (enterprise-packages), captured 2026-11-08 by running zone2sql --help (exit 0). permalink

syntax:

  --delete-matching-domains | --delete-matching-domains=yes | --delete-matching-domains=no
	Delete existing matching domains before emitting new domain
  --filter-duplicate-soa | --filter-duplicate-soa=yes | --filter-duplicate-soa=no
	Filter second SOA in zone
  --gmysql | --gmysql=yes | --gmysql=no
	Output in format suitable for default gmysqlbackend
  --gpgsql | --gpgsql=yes | --gpgsql=no
	Output in format suitable for default gpgsqlbackend
  --gsqlite | --gsqlite=yes | --gsqlite=no
	Output in format suitable for default gsqlitebackend
  --help
	Provide a helpful message
  --ignore-unknown-settings=...
	Configuration settings to ignore if they are unknown
  --json-comments | --json-comments=yes | --json-comments=no
	Parse json={} field for disabled & comments
  --max-generate-steps=...
	Maximum number of $GENERATE steps when loading a zone from a file
  --max-include-depth=...
	Maximum nested $INCLUDE depth when loading a zone from a file
  --named-conf=...
	Bind 8/9 named.conf to parse
  --on-error-resume-next | --on-error-resume-next=yes | --on-error-resume-next=no
	Continue after errors
  --secondary | --secondary=yes | --secondary=no
	Keep BIND secondaries as secondaries. Only works with named-conf.
  --transactions | --transactions=yes | --transactions=no
	If target SQL supports it, use transactions
  --verbose | --verbose=yes | --verbose=no
	Verbose comments on operation
  --version
	Print the version
  --zone=...
	Zonefile to parse
  --zone-name=...
	Specify an $ORIGIN in case it is not present
Options (15)
OptionDescriptionSource
--helpProvide a helpful messagehelp + man
--ignore-unknown-settings ...Configuration settings to ignore if they are unknownhelp
--max-generate-steps ...Maximum number of $GENERATE steps when loading a zone from a filehelp
--max-include-depth ...Maximum nested $INCLUDE depth when loading a zone from a filehelp
--named-conf ...Read PATH to get the BIND configurationhelp + man
--versionPrint the versionhelp
--zone ...Parse only the zone file at PATH Conflicts with --named-conf parameter.help + man
--zone-name ...When parsing a single zone without $ORIGIN statement, set ZONE as the zone name.help + man
--json-commentsParse JSON in zonefile comments to set the 'disabled' and 'comment' fields in the database. (in the manual page but not in --help)man
--transactionsIf the target SQL backend supports transactions, wrap every domain into a transaction for integrity and possibly higher speed. (in the manual page but not in --help)man
--delete-matching-domainsAdds a delete statement to the sql output to allow re-importing zones. (in the manual page but not in --help)man
--filter-duplicate-soaIf there's more than one SOA record in the zone (possibly because it was AXFR'd), ignore it. (in the manual page but not in --help)man
--on-error-resume-nextIgnore missing zone files during parsing. (in the manual page but not in --help)man
--secondaryMaintain secondary status of zones listed in named.conf as being slaves. (in the manual page but not in --help)man
--verboseBe verbose during conversion. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.