1ldns-read-zone(1) General Commands Manual ldns-read-zone(1)
2
3
4
6 ldns-read-zone - read a zonefile and print it
7
9 ldns-read-zone ZONEFILE
10
11
13 ldns-read-zone reads a DNS zone file and prints it. The output has 1
14 resource record per line, and no pretty-printing makeup.
15
16
18 -c Canonicalize all resource records in the zone before printing
19
20
21 -d Only print DNSSEC data from the zone. This option skips every
22 record that is not of type NSEC, NSEC3, RRSIG or DNSKEY. DS
23 records are not printed.
24
25
26 -b Include Bubble Babble encoding of DS's.
27
28
29 -0 Print a (null) for the RRSIG inception, expiry and key data.
30 This option can be used when comparing different signing systems
31 that use the same DNSKEYs for signing but would have a slightly
32 different timings/jitter.
33
34
35 -h Show usage and exit
36
37
38 -n Do not print the SOA record
39
40
41 -p Pad the SOA serial number with spaces so the number and the spa‐
42 ces together take ten characters. This is useful for in file
43 serial number increments.
44
45
46 -s Strip DNSSEC data from the zone. This option skips every record
47 that is of type NSEC, NSEC3, RRSIG or DNSKEY. DS records are
48 still printed.
49
50
51 -S [[+|0]number | YYYYMMDDxx | unixtime ]
52 Set serial number to the given number, or when preceded by a
53 sign, offset the exisiting number with it. When giving the lit‐
54 eral strings YYYYMMDDxx or unixtime, the serial number is tried
55 to be reset in datecounter or in unixtime format respectively.
56 Though is the updated serial number is smaller than the original
57 one, the original one is simply increased by one.
58
59 When updating a serial number, records of type NSEC, NSEC3,
60 RRSIG and DNSKEY will be skipped when printing the zone.
61
62
63
64 -v Show the version and exit
65
66
67 -z Sort the zone before printing (this implies -c)
68
69
70
72 Written by the ldns team as an example for ldns usage.
73
74
76 Report bugs to <ldns-team@nlnetlabs.nl>.
77
78
80 Copyright (C) 2005 NLnet Labs. This is free software. There is NO war‐
81 ranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR‐
82 POSE.
83
84
85
86 30 May 2005 ldns-read-zone(1)