Debian Codegraph @

doc/man/named-rrchecker.1in

raw
1 .\" Man page generated from reStructuredText
2 .\" by the Docutils 0.22.4 manpage writer.
3 .
4 .
5 .nr rst2man-indent-level 0
6 .
7 .de1 rstReportMargin
8 \\$1 \\n[an-margin]
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
11 -
12 \\n[rst2man-indent0]
13 \\n[rst2man-indent1]
14 \\n[rst2man-indent2]
15 ..
16 .de1 INDENT
17 .\" .rstReportMargin pre:
18 . RS \\$1
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
22 ..
23 .de UNINDENT
24 . RE
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30 ..
31 .TH "NAMED-RRCHECKER" "1" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9"
32 .SH NAME
33 named-rrchecker \- syntax checker for individual DNS resource records
34 .SH SYNOPSIS
35 .sp
36 \fBnamed\-rrchecker\fP [\fB\-h\fP] [\fB\-o\fP origin] [\fB\-p\fP] [\fB\-u\fP] [\fB\-C\fP] [\fB\-T\fP] [\fB\-P\fP]
37 .SH DESCRIPTION
38 .sp
39 \fBnamed\-rrchecker\fP reads a single DNS resource record (RR) from standard
40 input and checks whether it is syntactically correct.
41 .INDENT 0.0
42 .TP
43 .B The input format is a minimal subset of the DNS zone file format. The entire input must be:
44 CLASS TYPE RDATA
45 .UNINDENT
46 .INDENT 0.0
47 .IP \(bu 2
48 Input must not start with an owner (domain) name
49 .IP \(bu 2
50 The \fICLASS\fP field is mandatory (typically \fBIN\fP).
51 .IP \(bu 2
52 The \fITTL\fP field \fBmust not\fP be present.
53 .IP \(bu 2
54 RDATA format is specific to each RRTYPE.
55 .IP \(bu 2
56 Leading and trailing whitespace in each field is ignored.
57 .UNINDENT
58 .sp
59 Format details can be found in \fBRFC 1035 Section 5.1\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1035\:.html#\:section-5.1> under \fB<rr>\fP
60 specification. \fBRFC 3597\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc3597\:.html> format is also accepted in any of the input fields.
61 See Examples\&.
62 .SH OPTIONS
63 .INDENT 0.0
64 .TP
65 .B \-o origin
66 This option specifies the origin to be used when interpreting names in the record:
67 it defaults to root (\fI\&.\fP). The specified origin is always taken as an absolute name.
68 .UNINDENT
69 .INDENT 0.0
70 .TP
71 .B \-p
72 This option prints out the resulting record in canonical form. If there
73 is no canonical form defined, the record is printed in \fBRFC 3597\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc3597\:.html> unknown
74 record format.
75 .UNINDENT
76 .INDENT 0.0
77 .TP
78 .B \-u
79 This option prints out the resulting record in \fBRFC 3597\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc3597\:.html> unknown record
80 format.
81 .UNINDENT
82 .INDENT 0.0
83 .TP
84 .B \-C, \-T, \-P
85 These options do not read input. They print out known classes, standard types,
86 and private type mnemonics. Each item is printed on a separate line.
87 The resulting list of private types may be empty
88 .UNINDENT
89 .INDENT 0.0
90 .TP
91 .B \-h
92 This option prints out the help menu.
93 .UNINDENT
94 .SH EXAMPLES
95 .sp
96 Pay close attention to the \fBecho\fP command line options \fI\-e\fP and \fI\-n\fP, as they affect whitespace in the input to \fBnamed\-rrchecker\fP\&.
97 .INDENT 0.0
98 .TP
99 .B echo \-n \(aqIN A 192.0.2.1\(aq | named\-rrchecker
100 .INDENT 7.0
101 .IP \(bu 2
102 Valid input is in \fBRFC 1035\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1035\:.html> format with no newline at the end of the input.
103 .IP \(bu 2
104 Return code 0.
105 .UNINDENT
106 .TP
107 .B echo \-e \(aq\en \en IN\etA 192.0.2.1 \et \en\en \(aq | named\-rrchecker \-p
108 .INDENT 7.0
109 .IP \(bu 2
110 Valid input with leading and trailing whitespace.
111 .IP \(bu 2
112 Output: \fBIN A 192.0.2.1\fP
113 .IP \(bu 2
114 Leading and trailing whitespace is not part of the output.
115 .UNINDENT
116 .UNINDENT
117 .SS Relative names and origin
118 .INDENT 0.0
119 .TP
120 .B echo \(aqIN CNAME target\(aq | named\-rrchecker \-p
121 .INDENT 7.0
122 .IP \(bu 2
123 Valid input with a relative name as the CNAME target.
124 .IP \(bu 2
125 Output: \fBIN CNAME target.\fP
126 .IP \(bu 2
127 Relative name \fItarget\fP from the input is converted to an absolute name using the default origin \fB\&.\fP (root).
128 .UNINDENT
129 .TP
130 .B echo \(aqIN CNAME target\(aq | named\-rrchecker \-p \-o origin.test
131 .INDENT 7.0
132 .IP \(bu 2
133 Valid input with a relative name as the CNAME target.
134 .IP \(bu 2
135 Output: \fBIN CNAME target.origin.test.\fP
136 .IP \(bu 2
137 Relative name \fItarget\fP from the input is converted to an absolute name using the specified origin \fBorigin.test\fP
138 .UNINDENT
139 .TP
140 .B echo \(aqIN CNAME target.\(aq | named\-rrchecker \-p \-o origin.test
141 .INDENT 7.0
142 .IP \(bu 2
143 Valid input with an absolute name as the CNAME target.
144 .IP \(bu 2
145 Output: \fBIN CNAME target.\fP
146 .IP \(bu 2
147 The specified origin has no influence if \fItarget\fP from the input is already absolute.
148 .UNINDENT
149 .UNINDENT
150 .SS Special characters
151 .sp
152 Special characters allowed in zone files by \fBRFC 1035 Section 5.1\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1035\:.html#\:section-5.1> are accepted.
153 .INDENT 0.0
154 .TP
155 .B echo \(aqIN CNAME t\e097r\eget\e.\(aq | named\-rrchecker \-p \-o origin.test
156 .INDENT 7.0
157 .IP \(bu 2
158 Valid input with backslash escapes.
159 .IP \(bu 2
160 Output: \fBIN CNAME target\e..origin.test.\fP
161 .IP \(bu 2
162 \fB\e097\fP denotes an ASCII value in decimal, which, in this example, is the character \fBa\fP\&.
163 .IP \(bu 2
164 \fB\eg\fP is converted to a plain \fBg\fP because the \fBg\fP character does not have a special meaning and so the \fB\e\fP prefix does nothing in this case.
165 .IP \(bu 2
166 \fB\e.\fP denotes a literal ASCII dot (here as a part of the CNAME target name). Special meaning of \fB\&.\fP as the DNS label separator was disabled by the preceding \fB\e\fP prefix.
167 .UNINDENT
168 .TP
169 .B echo \(aqIN CNAME @\(aq | named\-rrchecker \-p \-o origin.test
170 .INDENT 7.0
171 .IP \(bu 2
172 Valid input with \fB@\fP used as a reference to the specified origin.
173 .IP \(bu 2
174 Output: \fBIN CNAME origin.test.\fP
175 .UNINDENT
176 .TP
177 .B echo \(aqIN CNAME \e@\(aq | named\-rrchecker \-p \-o origin.test
178 .INDENT 7.0
179 .IP \(bu 2
180 Valid input with a literal \fB@\fP character (escaped).
181 .IP \(bu 2
182 Output: \fBIN CNAME \[email protected].\fP
183 .UNINDENT
184 .TP
185 .B echo \(aqIN CNAME prefix.@\(aq | named\-rrchecker \-p \-o origin.test
186 .INDENT 7.0
187 .IP \(bu 2
188 Valid input with \fB@\fP used as a reference to the specifed origin.
189 .IP \(bu 2
190 Output: \fBIN CNAME prefix.\[email protected].\fP
191 .IP \(bu 2
192 \fB@\fP has special meaning only if it is free\-standing.
193 .UNINDENT
194 .TP
195 .B echo \(aqIN A 192.0.2.1; comment\(aq | named\-rrchecker \-p
196 .INDENT 7.0
197 .IP \(bu 2
198 Valid input with a trailing comment. Note the lack of whitespace before the start of the comment.
199 .IP \(bu 2
200 Output: \fBIN A 192.0.2.1\fP
201 .UNINDENT
202 .UNINDENT
203 .sp
204 For multi\-line examples see the next section.
205 .SS Multi\-token records
206 .INDENT 0.0
207 .TP
208 .B echo \-e \(aqIN TXT two words \en\(aq | named\-rrchecker \-p
209 .INDENT 7.0
210 .IP \(bu 2
211 Valid TXT RR with two unquoted words and trailing whitespace.
212 .IP \(bu 2
213 Output: \fBIN TXT \(dqtwo\(dq \(dqwords\(dq\fP
214 .IP \(bu 2
215 Two unquoted words in the input are treated as two \fI<character\-string>\fPs per \fBRFC 1035 Section 3.3.14\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1035\:.html#\:section-3\:.3\:.14>\&.
216 .IP \(bu 2
217 Trailing whitespace is omitted from the last \fI<character\-string>\fP\&.
218 .UNINDENT
219 .TP
220 .B echo \-e \(aqIN TXT \(dqtwo words\(dq \en\(aq | named\-rrchecker \-p
221 .INDENT 7.0
222 .IP \(bu 2
223 Valid TXT RR with one \fIcharacter\-string\fP and trailing whitespace.
224 .IP \(bu 2
225 Output: \fBIN TXT \(dqtwo words\(dq\fP
226 .UNINDENT
227 .TP
228 .B echo \-e \(aqIN TXT \(dqproblematic newline\en\(dq\(aq | named\-rrchecker \-p
229 .INDENT 7.0
230 .IP \(bu 2
231 Invalid input \- the closing \fB\(dq\fP is not detected before the end of the line.
232 .UNINDENT
233 .TP
234 .B echo \(aqIN TXT \(dqwith newline\e010\(dq\(aq | named\-rrchecker \-p
235 .INDENT 7.0
236 .IP \(bu 2
237 Valid input with an escaped newline character inside \fIcharacter\-string\fP\&.
238 .IP \(bu 2
239 Output: \fBIN TXT \(dqwith newline\e010\(dq\fP
240 .UNINDENT
241 .TP
242 .B echo \-e \(aqIN TXT ( two\enwords )\(aq | named\-rrchecker \-p
243 .INDENT 7.0
244 .IP \(bu 2
245 Valid multi\-line input with line continuation allowed inside optional parentheses in the RDATA field.
246 .IP \(bu 2
247 Output: \fBIN TXT \(dqtwo\(dq \(dqwords\(dq\fP
248 .UNINDENT
249 .TP
250 .B echo \-e \(aqIN TXT ( two\enwords ; misplaced comment )\(aq | named\-rrchecker \-p
251 .INDENT 7.0
252 .IP \(bu 2
253 Invalid input \- comments, starting with \(dq;\(dq, are ignored by the parser, so the closing parenthesis should be before the semicolon.
254 .UNINDENT
255 .TP
256 .B echo \-e \(aqIN TXT ( two\enwords ; a working comment\en )\(aq | named\-rrchecker \-p
257 .INDENT 7.0
258 .IP \(bu 2
259 Valid input \- the comment is terminated with a newline.
260 .IP \(bu 2
261 Output: \fBIN TXT \(dqtwo\(dq \(dqwords\(dq\fP
262 .UNINDENT
263 .TP
264 .B echo \(aqIN HTTPS 1 . alpn=\(dqh2,h3\(dq\(aq | named\-rrchecker \-p
265 .INDENT 7.0
266 .IP \(bu 2
267 Valid HTTPS record
268 .IP \(bu 2
269 Output: \fBIN HTTPS 1 . alpn=\(dqh2,h3\(dq\fP
270 .UNINDENT
271 .TP
272 .B echo \-e \(aqIN HTTPS ( 1 \en . \en alpn=\(dqdot\(dq)port=853\(aq | named\-rrchecker \-p
273 .INDENT 7.0
274 .IP \(bu 2
275 Valid HTTPS record with individual sub\-fields split across multiple lines
276 using \fBRFC 1035 Section 5.1\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1035\:.html#\:section-5.1> parentheses syntax to group data that crosses
277 a line boundary.
278 .IP \(bu 2
279 Note the missing whitespace between the closing parenthesis and adjacent tokens.
280 .IP \(bu 2
281 Output: \fBIN HTTPS 1 . alpn=\(dqdot\(dq port=853\fP
282 .UNINDENT
283 .UNINDENT
284 .SS Unknown type handling
285 .INDENT 0.0
286 .TP
287 .B echo \(aqIN A 192.0.2.1\(aq | named\-rrchecker \-u
288 .INDENT 7.0
289 .IP \(bu 2
290 Valid input in \fBRFC 1035\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1035\:.html> format.
291 .IP \(bu 2
292 Output in \fBRFC 3957\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc3957\:.html> format: \fBCLASS1 TYPE1 \e# 4 C0000201\fP
293 .UNINDENT
294 .TP
295 .B echo \(aqCLASS1 TYPE1 \e# 4 C0000201\(aq | named\-rrchecker \-p
296 .INDENT 7.0
297 .IP \(bu 2
298 Valid input in \fBRFC 3597\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc3597\:.html> format.
299 .IP \(bu 2
300 Output in \fBRFC 1035\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1035\:.html> format: \fBIN A 192.0.2.1\fP
301 .UNINDENT
302 .TP
303 .B echo \(aqIN A \e# 4 C0000201\(aq | named\-rrchecker \-p
304 .INDENT 7.0
305 .IP \(bu 2
306 Valid input with class and type in \fBRFC 1035\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1035\:.html> format and rdata in \fBRFC 3597\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc3597\:.html> format.
307 .IP \(bu 2
308 Output in \fBRFC 1035\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1035\:.html> format: \fBIN A 192.0.2.1\fP
309 .UNINDENT
310 .TP
311 .B echo \(aqIN HTTPS 1 . key3=\e001\e000\(aq | named\-rrchecker \-p
312 .INDENT 7.0
313 .IP \(bu 2
314 Valid input with \fBRFC 9460\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc9460\:.html> syntax for an unknown \fIkey3\fP field. Syntax \fB\e001\e000\fP produces two octets with values 1 and 0, respectively.
315 .IP \(bu 2
316 Output: \fBIN HTTPS 1 . port=256\fP
317 .IP \(bu 2
318 \fIkey3\fP matches the standardized key name \fIport\fP\&.
319 .IP \(bu 2
320 Octets 1 and 0 were decoded as integer values in big\-endian encoding.
321 .UNINDENT
322 .TP
323 .B echo \(aqIN HTTPS 1 . key3=\e001\(aq | named\-rrchecker \-p
324 .INDENT 7.0
325 .IP \(bu 2
326 Invalid input \- the length of the value for \fIkey3\fP (i.e. port) does not match the known standard format for that parameter in the SVCB RRTYPE.
327 .UNINDENT
328 .TP
329 .B echo \(aqIN HTTPS 1 . port=\e001\e000\(aq | named\-rrchecker \-p
330 .INDENT 7.0
331 .IP \(bu 2
332 Invalid input \- the key \fIport\fP, when specified using its standard mnemonic name, \fBmust\fP use standard key\-specific syntax.
333 .UNINDENT
334 .UNINDENT
335 .SS Meta values
336 .INDENT 0.0
337 .TP
338 .B echo \(aqIN AXFR\(aq | named\-rrchecker
339 .INDENT 7.0
340 .IP \(bu 2
341 Invalid input \- AXFR is a meta type, not a genuine RRTYPE.
342 .UNINDENT
343 .TP
344 .B echo \(aqANY A 192.0.2.1\(aq | named\-rrchecker
345 .INDENT 7.0
346 .IP \(bu 2
347 Invalid input \- ANY is meta class, not a true class.
348 .UNINDENT
349 .TP
350 .B echo \(aqA 192.0.2.1\(aq | named\-rrchecker
351 .INDENT 7.0
352 .IP \(bu 2
353 Invalid input \- the class field is missing, so the parser would try and fail to interpret the RRTYPE A as the class.
354 .UNINDENT
355 .UNINDENT
356 .SH RETURN CODES
357 .INDENT 0.0
358 .TP
359 .B 0
360 The whole input was parsed as one syntactically valid resource record.
361 .TP
362 .B 1
363 The input is not a syntactically valid resource record, or the given type is not
364 supported, or either/both class and type are meta\-values, which should not appear in zone files.
365 .UNINDENT
366 .SH SEE ALSO
367 .sp
368 \fBRFC 1034\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1034\:.html>, \fBRFC 1035\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1035\:.html>, \fBRFC 3957\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc3957\:.html>, \fBnamed(8)\fP \%<#\:std-iscman-named>\&.
369 .SH Author
370 Internet Systems Consortium
371 .SH Copyright
372 2026, Internet Systems Consortium
373 .\" End of generated man page.