Debian Codegraph @

doc/man/delv.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 "DELV" "1" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9"
32 .SH NAME
33 delv \- DNS lookup and validation utility
34 .SH SYNOPSIS
35 .sp
36 \fBdelv\fP [@server] [ [\fB\-4\fP] | [\fB\-6\fP] ] [\fB\-a\fP anchor\-file] [\fB\-b\fP address] [\fB\-c\fP class] [\fB\-d\fP level] [\fB\-i\fP] [\fB\-m\fP] [\fB\-p\fP port#] [\fB\-q\fP name] [\fB\-t\fP type] [\fB\-x\fP addr] [name] [type] [class] [queryopt...]
37 .sp
38 \fBdelv\fP [\fB\-h\fP]
39 .sp
40 \fBdelv\fP [\fB\-v\fP]
41 .sp
42 \fBdelv\fP [queryopt...] [query...]
43 .SH DESCRIPTION
44 .sp
45 \fBdelv\fP is a tool for sending DNS queries and validating the results,
46 using the same internal resolver and validator logic as \fBnamed\fP \%<#\:std-iscman-named>\&.
47 .sp
48 \fBdelv\fP sends to a specified name server all queries needed to
49 fetch and validate the requested data; this includes the original
50 requested query, subsequent queries to follow CNAME or DNAME chains,
51 queries for DNSKEY, and DS records to establish a chain of trust for
52 DNSSEC validation. It does not perform iterative resolution, but
53 simulates the behavior of a name server configured for DNSSEC validating
54 and forwarding.
55 .sp
56 By default, responses are validated using the built\-in DNSSEC trust anchor
57 for the root zone (\(dq.\(dq). Records returned by \fBdelv\fP are either fully
58 validated or were not signed. If validation fails, an explanation of the
59 failure is included in the output; the validation process can be traced
60 in detail. Because \fBdelv\fP does not rely on an external server to carry
61 out validation, it can be used to check the validity of DNS responses in
62 environments where local name servers may not be trustworthy.
63 .sp
64 Unless it is told to query a specific name server, \fBdelv\fP tries
65 each of the servers listed in \fB/etc/resolv.conf\fP\&. If no usable server
66 addresses are found, \fBdelv\fP sends queries to the localhost
67 addresses (127.0.0.1 for IPv4, ::1 for IPv6).
68 .sp
69 When no command\-line arguments or options are given, \fBdelv\fP
70 performs an NS query for \(dq.\(dq (the root zone).
71 .SH SIMPLE USAGE
72 .sp
73 A typical invocation of \fBdelv\fP looks like:
74 .INDENT 0.0
75 .INDENT 3.5
76 .sp
77 .EX
78 delv @server name type
79 .EE
80 .UNINDENT
81 .UNINDENT
82 .sp
83 where:
84 .INDENT 0.0
85 .TP
86 .B server
87 is the name or IP address of the name server to query. This can be an
88 IPv4 address in dotted\-decimal notation or an IPv6 address in
89 colon\-delimited notation. When the supplied \fBserver\fP argument is a
90 hostname, \fBdelv\fP resolves that name before querying that name
91 server (note, however, that this initial lookup is \fInot\fP validated by
92 DNSSEC).
93 .sp
94 If no \fBserver\fP argument is provided, \fBdelv\fP consults
95 \fB/etc/resolv.conf\fP; if an address is found there, it queries the
96 name server at that address. If either of the \fB\-4\fP or \fB\-6\fP
97 options is in use, then only addresses for the corresponding
98 transport are tried. If no usable addresses are found, \fBdelv\fP
99 sends queries to the localhost addresses (127.0.0.1 for IPv4, ::1
100 for IPv6).
101 .UNINDENT
102 .INDENT 0.0
103 .TP
104 .B name
105 is the domain name to be looked up.
106 .UNINDENT
107 .INDENT 0.0
108 .TP
109 .B type
110 indicates what type of query is required \- ANY, A, MX, etc.
111 \fBtype\fP can be any valid query type. If no \fBtype\fP argument is
112 supplied, \fBdelv\fP performs a lookup for an A record.
113 .UNINDENT
114 .SH OPTIONS
115 .INDENT 0.0
116 .TP
117 .B \-a anchor\-file
118 This option specifies a file from which to read an alternate
119 DNSSEC root zone trust anchor.
120 .sp
121 By default, keys that do not match the root zone name (\fI\&.\fP) are
122 ignored. If an alternate key name is desired, it can be
123 specified using the \fB+root\fP option.
124 .sp
125 Note: When reading trust anchors, \fBdelv\fP treats
126 \fBtrust\-anchors\fP, \fBinitial\-key\fP, and \fBstatic\-key\fP identically. That
127 is, for a managed key, it is the \fIinitial\fP key that is trusted;
128 \fBRFC 5011\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc5011\:.html> key management is not supported. \fBdelv\fP does not
129 consult the managed\-keys database maintained by \fBnamed\fP \%<#\:std-iscman-named>\&. This
130 means that if the default key built in to \fBdelv\fP is revoked,
131 \fBdelv\fP must be updated to a newer version in order to continue
132 validating.
133 .UNINDENT
134 .INDENT 0.0
135 .TP
136 .B \-b address
137 This option sets the source IP address of the query to \fBaddress\fP\&. This must be
138 a valid address on one of the host\(aqs network interfaces, or \fB0.0.0.0\fP,
139 or \fB::\fP\&. An optional source port may be specified by appending
140 \fB#<port>\fP
141 .UNINDENT
142 .INDENT 0.0
143 .TP
144 .B \-c class
145 This option sets the query class for the requested data. Currently, only class
146 \(dqIN\(dq is supported in \fBdelv\fP and any other value is ignored.
147 .UNINDENT
148 .INDENT 0.0
149 .TP
150 .B \-d level
151 This option sets the systemwide debug level to \fBlevel\fP\&. The allowed range is
152 from 0 to 99. The default is 0 (no debugging). Debugging traces from
153 \fBdelv\fP become more verbose as the debug level increases. See the
154 \fB+mtrace\fP, \fB+rtrace\fP, and \fB+vtrace\fP options below for
155 additional debugging details.
156 .UNINDENT
157 .INDENT 0.0
158 .TP
159 .B \-h
160 This option displays the \fBdelv\fP help usage output and exits.
161 .UNINDENT
162 .INDENT 0.0
163 .TP
164 .B \-i
165 This option sets insecure mode, which disables internal DNSSEC validation. (Note,
166 however, that this does not set the CD bit on upstream queries. If the
167 server being queried is performing DNSSEC validation, then it does
168 not return invalid data; this can cause \fBdelv\fP to time out. When it
169 is necessary to examine invalid data to debug a DNSSEC problem, use
170 \fBdig +cd\fP \%<#\:cmdoption-dig-arg-cd>\&.)
171 .UNINDENT
172 .INDENT 0.0
173 .TP
174 .B \-m
175 This option enables memory usage debugging.
176 .UNINDENT
177 .INDENT 0.0
178 .TP
179 .B \-p port#
180 This option specifies a destination port to use for queries, instead of the
181 standard DNS port number 53. This option is used with a name
182 server that has been configured to listen for queries on a
183 non\-standard port number.
184 .UNINDENT
185 .INDENT 0.0
186 .TP
187 .B \-q name
188 This option sets the query name to \fBname\fP\&. While the query name can be
189 specified without using the \fB\-q\fP option, it is sometimes necessary to
190 disambiguate names from types or classes (for example, when looking
191 up the name \(dqns\(dq, which could be misinterpreted as the type NS, or
192 \(dqch\(dq, which could be misinterpreted as class CH).
193 .UNINDENT
194 .INDENT 0.0
195 .TP
196 .B \-t type
197 This option sets the query type to \fBtype\fP, which can be any valid query type
198 supported in BIND 9 except for zone transfer types AXFR and IXFR. As
199 with \fB\-q\fP, this is useful to distinguish query\-name types or classes
200 when they are ambiguous. It is sometimes necessary to disambiguate
201 names from types.
202 .sp
203 The default query type is \(dqA\(dq, unless the \fB\-x\fP option is supplied
204 to indicate a reverse lookup, in which case it is \(dqPTR\(dq.
205 .UNINDENT
206 .INDENT 0.0
207 .TP
208 .B \-v
209 This option prints the \fBdelv\fP version and exits.
210 .UNINDENT
211 .INDENT 0.0
212 .TP
213 .B \-x addr
214 This option performs a reverse lookup, mapping an address to a name. \fBaddr\fP
215 is an IPv4 address in dotted\-decimal notation, or a colon\-delimited
216 IPv6 address. When \fB\-x\fP is used, there is no need to provide the
217 \fBname\fP or \fBtype\fP arguments; \fBdelv\fP automatically performs a
218 lookup for a name like \fB11.12.13.10.in\-addr.arpa\fP and sets the
219 query type to PTR. IPv6 addresses are looked up using nibble format
220 under the IP6.ARPA domain.
221 .UNINDENT
222 .INDENT 0.0
223 .TP
224 .B \-4
225 This option forces \fBdelv\fP to only use IPv4.
226 .UNINDENT
227 .INDENT 0.0
228 .TP
229 .B \-6
230 This option forces \fBdelv\fP to only use IPv6.
231 .UNINDENT
232 .SH QUERY OPTIONS
233 .sp
234 \fBdelv\fP provides a number of query options which affect the way results
235 are displayed, and in some cases the way lookups are performed.
236 .sp
237 Each query option is identified by a keyword preceded by a plus sign
238 (\fB+\fP). Some keywords set or reset an option. These may be preceded by
239 the string \fBno\fP to negate the meaning of that keyword. Other keywords
240 assign values to options like the timeout interval. They have the form
241 \fB+keyword=value\fP\&. The query options are:
242 .INDENT 0.0
243 .TP
244 .B +cdflag, +nocdflag
245 This option controls whether to set the CD (checking disabled) bit in queries
246 sent by \fBdelv\fP\&. This may be useful when troubleshooting DNSSEC
247 problems from behind a validating resolver. A validating resolver
248 blocks invalid responses, making it difficult to retrieve them
249 for analysis. Setting the CD flag on queries causes the resolver
250 to return invalid responses, which \fBdelv\fP can then validate
251 internally and report the errors in detail.
252 .UNINDENT
253 .INDENT 0.0
254 .TP
255 .B +class, +noclass
256 This option controls whether to display the CLASS when printing a record. The
257 default is to display the CLASS.
258 .UNINDENT
259 .INDENT 0.0
260 .TP
261 .B +hint=FILE, +nohint
262 This option specifies a filename from which to load root hints;
263 this will be used to find the root name servers when name server
264 mode (\fBdelv +ns\fP) is in use. If the option is not specified,
265 built\-in root hints will be used.
266 .UNINDENT
267 .INDENT 0.0
268 .TP
269 .B +ns, +nons
270 This option toggles name server mode. When this option is in use,
271 the \fBdelv\fP process instantiates a full recursive resolver, and uses
272 that to look up the requested query name and type. Turning on this
273 option also activates \fB+mtrace\fP, \fB+strace\fP and \fB+rtrace\fP, so that
274 every iterative query will be logged, including the full response messages
275 from each authoritatve server. These logged messages will be written
276 to \fBstdout\fP rather than \fBstderr\fP as usual, so that the full trace
277 can be captured more easily.
278 .sp
279 This is intended to be similar to the behavior of \fBdig +trace\fP, but
280 because it uses the same code as \fBnamed\fP, it much more accurately
281 replicates the behavior of a recursive name server with a cold cache
282 that is processing a recursive query.
283 .UNINDENT
284 .INDENT 0.0
285 .TP
286 .B +qmin[=MODE], +noqmin
287 When used with \fB+ns\fP, this option enables QNAME minimization mode.
288 Valid options of MODE are \fBrelaxed\fP and \fBstrict\fP\&. By default,
289 QNAME minimization is disabled. If \fB+qmin\fP is specified but MODE
290 is omitted, then \fBrelaxed\fP mode will be used.
291 .UNINDENT
292 .INDENT 0.0
293 .TP
294 .B +ttl, +nottl
295 This option controls whether to display the TTL when printing a record. The
296 default is to display the TTL.
297 .UNINDENT
298 .INDENT 0.0
299 .TP
300 .B +rtrace, +nortrace
301 This option toggles resolver fetch logging. This reports the name and
302 type of each query sent by \fBdelv\fP in the process of carrying
303 out the resolution and validation process, including the original query
304 and all subsequent queries to follow CNAMEs and to establish a chain of
305 trust for DNSSEC validation.
306 .sp
307 This is equivalent to setting the debug level to 1 in the \(dqresolver\(dq
308 logging category. Setting the systemwide debug level to 1 using the
309 \fB\-d\fP option produces the same output, but affects other
310 logging categories as well.
311 .UNINDENT
312 .INDENT 0.0
313 .TP
314 .B +mtrace, +nomtrace
315 This option toggles logging of messages received. This produces
316 a detailed dump of the responses received by \fBdelv\fP in the
317 process of carrying out the resolution and validation process.
318 .sp
319 This is equivalent to setting the debug level to 10 for the \(dqpackets\(dq
320 module of the \(dqresolver\(dq logging category. Setting the systemwide
321 debug level to 10 using the \fB\-d\fP option produces the same
322 output, but affects other logging categories as well.
323 .UNINDENT
324 .INDENT 0.0
325 .TP
326 .B +strace, +nostrace
327 This option toggles logging of messages sent. This produces a detailed
328 dump of the queries sent by \fBdelv\fP in the process of carrying
329 out the resolution and validation process. Turning on this option
330 also activates \fB+mtrace\fP\&.
331 .sp
332 This is equivalent to setting the debug level to 11 for the \(dqpackets\(dq
333 module of the \(dqresolver\(dq logging category. Setting the systemwide
334 debug level to 11 using the \fB\-d\fP option produces the same
335 output, but affects other logging categories as well.
336 .UNINDENT
337 .INDENT 0.0
338 .TP
339 .B +vtrace, +novtrace
340 This option toggles validation logging. This shows the internal process of the
341 validator as it determines whether an answer is validly signed,
342 unsigned, or invalid.
343 .sp
344 This is equivalent to setting the debug level to 3 for the
345 \(dqvalidator\(dq module of the \(dqdnssec\(dq logging category. Setting the
346 systemwide debug level to 3 using the \fB\-d\fP option produces the
347 same output, but affects other logging categories as well.
348 .UNINDENT
349 .INDENT 0.0
350 .TP
351 .B +short, +noshort
352 This option toggles between verbose and terse answers. The default is to print the answer in a
353 verbose form.
354 .UNINDENT
355 .INDENT 0.0
356 .TP
357 .B +comments, +nocomments
358 This option toggles the display of comment lines in the output. The default is to
359 print comments.
360 .UNINDENT
361 .INDENT 0.0
362 .TP
363 .B +rrcomments, +norrcomments
364 This option toggles the display of per\-record comments in the output (for example,
365 human\-readable key information about DNSKEY records). The default is
366 to print per\-record comments.
367 .UNINDENT
368 .INDENT 0.0
369 .TP
370 .B +crypto, +nocrypto
371 This option toggles the display of cryptographic fields in DNSSEC records. The
372 contents of these fields are unnecessary to debug most DNSSEC
373 validation failures and removing them makes it easier to see the
374 common failures. The default is to display the fields. When omitted,
375 they are replaced by the string \fB[omitted]\fP or, in the DNSKEY case, the
376 key ID is displayed as the replacement, e.g. \fB[ key id = value ]\fP\&.
377 .UNINDENT
378 .INDENT 0.0
379 .TP
380 .B +restarts
381 When name server mode (\fBdelv +ns\fP) is in use, this option sets the
382 maximum number of CNAME queries to follow before terminating resolution.
383 This prevents \fBdelv\fP from hanging in the event of a CNAME loop.
384 The default is 11.
385 .UNINDENT
386 .INDENT 0.0
387 .TP
388 .B +maxqueries
389 This option specifies the maximum number of queries to send to resolve
390 a name before giving up. The default is 50.
391 .UNINDENT
392 .INDENT 0.0
393 .TP
394 .B +maxtotalqueries
395 This option specifies the maximum number of queries to send to resolve
396 a client request before giving up. The default is 200.
397 .UNINDENT
398 .INDENT 0.0
399 .TP
400 .B +trust, +notrust
401 This option controls whether to display the trust level when printing a record.
402 The default is to display the trust level.
403 .UNINDENT
404 .INDENT 0.0
405 .TP
406 .B +split[=W], +nosplit
407 This option splits long hex\- or base64\-formatted fields in resource records into
408 chunks of \fBW\fP characters (where \fBW\fP is rounded up to the nearest
409 multiple of 4). \fB+nosplit\fP or \fB+split=0\fP causes fields not to be
410 split at all. The default is 56 characters, or 44 characters when
411 multiline mode is active.
412 .UNINDENT
413 .INDENT 0.0
414 .TP
415 .B +all, +noall
416 This option sets or clears the display options \fB+comments\fP,
417 \fB+rrcomments\fP, and \fB+trust\fP as a group.
418 .UNINDENT
419 .INDENT 0.0
420 .TP
421 .B +multiline, +nomultiline
422 This option prints long records (such as RRSIG, DNSKEY, and SOA records) in a
423 verbose multi\-line format with human\-readable comments. The default
424 is to print each record on a single line, to facilitate machine
425 parsing of the \fBdelv\fP output.
426 .UNINDENT
427 .INDENT 0.0
428 .TP
429 .B +dnssec, +nodnssec
430 This option indicates whether to display RRSIG records in the \fBdelv\fP output.
431 The default is to do so. Note that (unlike in \fBdig\fP \%<#\:std-iscman-dig>) this does
432 \fInot\fP control whether to request DNSSEC records or to
433 validate them. DNSSEC records are always requested, and validation
434 always occurs unless suppressed by the use of \fB\-i\fP or
435 \fB+noroot\fP\&.
436 .UNINDENT
437 .INDENT 0.0
438 .TP
439 .B +root[=ROOT], +noroot
440 This option indicates whether to perform conventional DNSSEC validation, and if so,
441 specifies the name of a trust anchor. The default is to validate using a
442 trust anchor of \(dq.\(dq (the root zone), for which there is a built\-in key. If
443 specifying a different trust anchor, then \fB\-a\fP must be used to specify a
444 file containing the key.
445 .UNINDENT
446 .INDENT 0.0
447 .TP
448 .B +tcp, +notcp
449 This option controls whether to use TCP when sending queries. The default is to
450 use UDP unless a truncated response has been received.
451 .UNINDENT
452 .INDENT 0.0
453 .TP
454 .B +unknownformat, +nounknownformat
455 This option prints all RDATA in unknown RR\-type presentation format (\fBRFC 3597\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc3597\:.html>).
456 The default is to print RDATA for known types in the type\(aqs
457 presentation format.
458 .UNINDENT
459 .INDENT 0.0
460 .TP
461 .B +yaml, +noyaml
462 This option prints response data in YAML format.
463 .UNINDENT
464 .SH FILES
465 .sp
466 \fB/etc/resolv.conf\fP
467 .SH SEE ALSO
468 .sp
469 \fBdig(1)\fP \%<#\:std-iscman-dig>, \fBnamed(8)\fP \%<#\:std-iscman-named>, \fBRFC 4034\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc4034\:.html>, \fBRFC 4035\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc4035\:.html>, \fBRFC 4431\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc4431\:.html>, \fBRFC 5074\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc5074\:.html>, \fBRFC 5155\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc5155\:.html>\&.
470 .SH Author
471 Internet Systems Consortium
472 .SH Copyright
473 2026, Internet Systems Consortium
474 .\" End of generated man page.