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 -0 Print a (null) for the RRSIG inception, expiry and key data.
19 This option can be used when comparing different signing systems
20 that use the same DNSKEYs for signing but would have a slightly
21 different timings/jitter.
22
23
24 -b Include Bubble Babble encoding of DS's.
25
26
27 -c Canonicalize all resource records in the zone before printing
28
29
30 -d Only print DNSSEC data from the zone. This option skips every
31 record that is not of type NSEC, NSEC3 or RRSIG. DNSKEY and DS
32 records are not printed.
33
34
35 -e RR type
36 Do not print RRs of the given rr type. This option may be given
37 multiple times. -e is not meant to be used together with -E.
38
39
40 -E RR type
41 Print only RRs of the given rr type. This option may be given
42 multiple times. -E is not meant to be used together with -e.
43
44
45 -h Show usage and exit
46
47
48 -n Do not print the SOA record
49
50
51 -p Pad the SOA serial number with spaces so the number and the spa‐
52 ces together take ten characters. This is useful for in file se‐
53 rial number increments.
54
55
56 -s Strip DNSSEC data from the zone. This option skips every record
57 that is of type NSEC, NSEC3 or RRSIG. DNSKEY and DS records are
58 still printed.
59
60
61 -S [[+|0]number | YYYYMMDDxx | unixtime ]
62 Set serial number to the given number, or when preceded by a
63 sign, offset the existing number with it. When giving the lit‐
64 eral strings YYYYMMDDxx or unixtime, the serial number is tried
65 to be reset in datecounter or in unixtime format respectively.
66 Though is the updated serial number is smaller than the original
67 one, the original one is simply increased by one.
68
69 When updating a serial number, records of type NSEC, NSEC3,
70 RRSIG and DNSKEY will be skipped when printing the zone.
71
72
73 -u RR type
74 Mark RR type for printing in unknown type format.
75
76 -u is not meant to be used together with -U.
77
78
79 -U RR type
80 Mark RR type for not printing in unknown type format.
81
82 The first occurrence of the -U option marks all RR types for
83 printing in unknown type format except for the given RR type.
84 Subsequent -U options will clear the mark for those RR types
85 too, so that only the given RR types will be printed in the pre‐
86 sentation format specific for those RR types.
87
88 -U is not meant to be used together with -u.
89
90
91 -v Show the version and exit
92
93
94 -z Sort the zone before printing (this implies -c)
95
96
97
99 Written by the ldns team as an example for ldns usage.
100
101
103 Report bugs to <ldns-team@nlnetlabs.nl>.
104
105
107 Copyright (C) 2005 NLnet Labs. This is free software. There is NO war‐
108 ranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR‐
109 POSE.
110
111
112
113 30 May 2005 ldns-read-zone(1)