OnWorks favicon

ldns-gen-zone - Online in the Cloud

Run ldns-gen-zone in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command ldns-gen-zone 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



ldns-gen-zone - read a zonefile and print it while adding DS records and extra RR's


ldns-gen-zone ZONEFILE


ldns-gen-zone reads a DNS zone file and prints it.

It is build for speed, not for a nice formatting. The output has one resource record per
line and no pretty-printing makeup.

DNSSEC data (NSEC, NSEC3, RRSIG or DNSKEY) is not stripped. You may want to use ldns-read-
zone for that. Existing DS records are also not stripped.

The idea is to use this tool for quickly generating a representative artificial zonefile
from a real zonefile, to use it for testing purposes.


-a NUM Adds NUM extra artificial NS RRSets to the output. The RRSets owner names start
with 'xn--' in an attempt to ensure uniqueness (nl.-zone does not support IDN's -
and this tool was written with that knowledge in mind).

An artificial NS RRSet has two NS records; ns1.example.com and ns2.example.com.

-p NUM Add NUM% of DS RRSets to the NS RRSets (anywhere between 1-4 DS records per RRSet).

Sets an $ORIGIN, which can be handy if the one in the zonefile is set to '@' for
example. If there is an $ORIGIN in the zonefile, this option will silently be

-s This is the recommended way of processing large zones that are already sorted and
canonicalized (ie lowercase). It skips the sorting and canonicalization step that
is required for properly grouping RRSets together (before adding any DS records to
them. Skipping this step will speed things up.

It is not recommended to use this option if you want to add DS records to unsorted,
non-canonicalized zones.

-h Show usage and exit.

-v Show version and exit.


ldns-gen-zone -a 100000 -p 10 -s ./zonefile.txt
Read a zonefile, add 100.000 artificial NS RRSets and 10% of DS records, print it
to standard output. Don't sort (will only work well if the input zonefile is
already sorted and canonicalized).

ldns-gen-zone -p 10 -s -o nl zonefile.txt | named-compilezone -s relative -i none -o
zonefile_10.txt nl /dev/stdin
This creates a nicely formatted zone file with the help of named-compilezone. It
adds 10% DS records to the .nl zone, reformats it and saves it as zonefile_10.txt.

Use ldns-gen-zone online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    ATTENTION: Cumulative update 2.4.3 has
    been released!! The update works for any
    previous 2.x.x version. If upgrading
    from version v1.x.x, please download and
    Download XISMuS
  • 2
    Modular headtracking program that
    supports multiple face-trackers, filters
    and game-protocols. Among the trackers
    are the SM FaceAPI, AIC Inertial Head
    Tracker ...
    Download facetracknoir
  • 3
    PHP QR Code
    PHP QR Code
    PHP QR Code is open source (LGPL)
    library for generating QR Code,
    2-dimensional barcode. Based on
    libqrencode C library, provides API for
    creating QR Code barc...
    Download PHP QR Code
  • 4
    Freeciv is a free turn-based
    multiplayer strategy game, in which each
    player becomes the leader of a
    civilization, fighting to obtain the
    ultimate goal: to bec...
    Download Freeciv
  • 5
    Cuckoo Sandbox
    Cuckoo Sandbox
    Cuckoo Sandbox uses components to
    monitor the behavior of malware in a
    Sandbox environment; isolated from the
    rest of the system. It offers automated
    analysis o...
    Download Cuckoo Sandbox
  • 6
    Play YouTube video on LMS (porting of
    Triode's to YouTbe API v3) This is
    an application that can also be fetched
    Download LMS-YouTube
  • More »

Linux commands

  • 1
    a2crd - attempts the conversion of
    lyrics file into chordii input ...
    Run a2crd
  • 2
    a2j - Wrapper script to simulate
    a2jmidid's non-DBUS behaviour though
    a2jmidid actually being in DBUS mode ...
    Run a2j
  • 3
    coqdoc - A documentation tool for the
    Coq proof assistant ...
    Run coqdoc
  • 4
    coqide - The Coq Proof Assistant
    graphical interface ...
    Run coqide
  • 5
    g.gisenv - Outputs and modifies the
    user�s current GRASS variable settings.
    Prints all defined GRASS variables if no
    option is given. KEYWORDS: general,
    Run g.gisenvgrass
  • 6
    g.gui - Launches a GRASS graphical user
    interface (GUI) session. Optionally
    updates default user interface settings.
    KEYWORDS: general, GUI, user interface ...
    Run g.guigrass
  • More »