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
IDNs - 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.
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 ignored.
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.
Show usage and exit.
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. Dont 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.
Initially written by Marco Davids, several modifications added by Miek Gieben, both from SIDN.
Report bugs to <email@example.com>.
Only undiscovered ones.
May require a machine with a considerable amount of memory for large zone files.
Fake DS records hashes are generated as digest type SHA-256 (RFC4509). Be aware not to change the DIGESTTYPE #define in the source code in anything else but 2 if you want to keep things realistic.
Despite a number of efforts, this program is still not the fastest in the world.
Copyright (C) 2010 SIDN. This is free software. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|-->||LDNS-GEN-ZONE (1)||10 June 2010|