EnglishFrenchSpanish

OnWorks favicon

zone2sql - Online in the Cloud

Run zone2sql in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command zone2sql that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


zone2sql - convert BIND zones to SQL

SYNOPSIS


zone2sql {--named-conf=PATH,--zone-file=PATH [--zone-name=NAME]} [OPTIONS]

DESCRIPTION


zone2sql parses Bind named.conf files and zonefiles and outputs SQL on standard out, which
can then be fed to your database.

zone2sql understands the Bind master file extension $GENERATE and will also honour $ORIGIN
and $TTL.

For backends supporting slave operation there is also an option to keep slave zones as
slaves, and not convert them to native operation.

zone2sql can generate SQL for the Generic MySQL, Generic PostgreSQL, Generic SQLite3 and
Generic Oracle backends.

OPTIONS


INPUT 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.

BACKENDS
--gmysql
Output in format suitable for the default configuration of the Generic MySQL
backend.

--gpgsql
Output in format suitable for the default configuration of the Generic PostgreSQL
backend.

--gsqlite
Output in format suitable for the default configuration of the Generic SQLite3
backend.

--goracle
Output in format suitable for the default configuration of the Generic Oracle
backend.

--mydns
Output in a format suitable for the MyDNS backend.

--oracle
Output in format suitable for the default configuration of the Oracle backend.

OUTPUT OPTIONS
--json-comments
Parse JSON in zonefile comments to set the 'disabled' and 'comment' fields in the
database. See JSON COMMENTS for more information.

--transactions
If the target SQL backend supports transactions, wrap every domain into a
transaction for integrity and possibly higher speed.

OTHER OPTIONS
--filter-duplicate-soa
If there's more than one SOA record in the zone (possibly because it was AXFR'd),
ignore it. If this option is not set, all SOA records in the zone are emitted.

--help List all options

--on-error-resume-next
Ignore missing zone files during parsing. Dangerous.

--slave
Maintain slave status of zones listed in named.conf as being slaves. The default
behaviour is to convert all zones to native operation.

--verbose
Be verbose during conversion.

JSON COMMENTS


The Generic SQL backends have the 'comment' and 'disabled' fields in the 'records' table.
The 'comment' field contains a comment for this record (if any) and the 'disabled' field
tells PowerDNS if the record can be served to clients.

When a zonefile contains a comment like ; json={"comment": "Something", "disabled": true}
and --json-comments is provided, the 'comment' field will contain "Something" and the
'disabled' field will be set to the database's native true value.

WARNING: Using JSON comments to disable records means that the zone in PowerDNS is
different from the one served by BIND, as BIND does not handle the disabled status in the
comment.

Use zone2sql online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Phaser
    Phaser
    Phaser is a fast, free, and fun open
    source HTML5 game framework that offers
    WebGL and Canvas rendering across
    desktop and mobile web browsers. Games
    can be co...
    Download Phaser
  • 2
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 3
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 4
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 5
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 6
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • More »

Linux commands

Ad