dig.1 23.7 KB
Newer Older
Tinderbox User's avatar
Tinderbox User committed
1
.\" Copyright (C) 2000-2011, 2013-2016 Internet Systems Consortium, Inc. ("ISC")
Rob Austein's avatar
regen    
Rob Austein committed
2
.\" 
Tinderbox User's avatar
Tinderbox User committed
3
4
5
.\" This Source Code Form is subject to the terms of the Mozilla Public
.\" License, v. 2.0. If a copy of the MPL was not distributed with this
.\" file, You can obtain one at http://mozilla.org/MPL/2.0/.
Rob Austein's avatar
regen    
Rob Austein committed
6
.\"
Rob Austein's avatar
regen    
Rob Austein committed
7
8
.hy 0
.ad l
Tinderbox User's avatar
Tinderbox User committed
9
'\" t
Automatic Updater's avatar
regen    
Automatic Updater committed
10
.\"     Title: dig
Tinderbox User's avatar
Tinderbox User committed
11
.\"    Author: 
Tinderbox User's avatar
Tinderbox User committed
12
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
Tinderbox User's avatar
Tinderbox User committed
13
.\"      Date: 2014-02-19
Automatic Updater's avatar
regen    
Automatic Updater committed
14
.\"    Manual: BIND9
Tinderbox User's avatar
Tinderbox User committed
15
16
.\"    Source: ISC
.\"  Language: English
Automatic Updater's avatar
regen    
Automatic Updater committed
17
.\"
Tinderbox User's avatar
Tinderbox User committed
18
19
20
21
22
23
24
25
26
27
28
29
30
.TH "DIG" "1" "2014\-02\-19" "ISC" "BIND9"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
Automatic Updater's avatar
regen    
Automatic Updater committed
31
32
33
34
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
Tinderbox User's avatar
Tinderbox User committed
35
36
37
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
Automatic Updater's avatar
regen    
Automatic Updater committed
38
.SH "NAME"
39
dig \- DNS lookup utility
Rob Austein's avatar
regen    
Rob Austein committed
40
.SH "SYNOPSIS"
Tinderbox User's avatar
Tinderbox User committed
41
.HP \w'\fBdig\fR\ 'u
Tinderbox User's avatar
Tinderbox User committed
42
\fBdig\fR [@server] [\fB\-b\ \fR\fB\fIaddress\fR\fR] [\fB\-c\ \fR\fB\fIclass\fR\fR] [\fB\-f\ \fR\fB\fIfilename\fR\fR] [\fB\-k\ \fR\fB\fIfilename\fR\fR] [\fB\-m\fR] [\fB\-p\ \fR\fB\fIport#\fR\fR] [\fB\-q\ \fR\fB\fIname\fR\fR] [\fB\-t\ \fR\fB\fItype\fR\fR] [\fB\-v\fR] [\fB\-x\ \fR\fB\fIaddr\fR\fR] [\fB\-y\ \fR\fB\fI[hmac:]\fR\fIname:key\fR\fR] [\fB\-4\fR] [\fB\-6\fR] [name] [type] [class] [queryopt...]
Tinderbox User's avatar
Tinderbox User committed
43
.HP \w'\fBdig\fR\ 'u
Rob Austein's avatar
regen    
Rob Austein committed
44
\fBdig\fR [\fB\-h\fR]
Tinderbox User's avatar
Tinderbox User committed
45
.HP \w'\fBdig\fR\ 'u
Rob Austein's avatar
regen    
Rob Austein committed
46
\fBdig\fR [global\-queryopt...] [query...]
47
48
.SH "DESCRIPTION"
.PP
Automatic Updater's avatar
regen    
Automatic Updater committed
49
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
50
(domain information groper) is a flexible tool for interrogating DNS name servers\&. It performs DNS lookups and displays the answers that are returned from the name server(s) that were queried\&. Most DNS administrators use
Automatic Updater's avatar
regen    
Automatic Updater committed
51
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
52
53
to troubleshoot DNS problems because of its flexibility, ease of use and clarity of output\&. Other lookup tools tend to have less functionality than
\fBdig\fR\&.
54
.PP
Automatic Updater's avatar
regen    
Automatic Updater committed
55
56
Although
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
57
is normally used with command\-line arguments, it also has a batch mode of operation for reading lookup requests from a file\&. A brief summary of its command\-line arguments and options is printed when the
Automatic Updater's avatar
regen    
Automatic Updater committed
58
\fB\-h\fR
Tinderbox User's avatar
Tinderbox User committed
59
option is given\&. Unlike earlier versions, the BIND 9 implementation of
Automatic Updater's avatar
regen    
Automatic Updater committed
60
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
61
allows multiple lookups to be issued from the command line\&.
62
.PP
Automatic Updater's avatar
regen    
Automatic Updater committed
63
64
65
Unless it is told to query a specific name server,
\fBdig\fR
will try each of the servers listed in
Tinderbox User's avatar
Tinderbox User committed
66
/etc/resolv\&.conf\&. If no usable server addresses are found,
Tinderbox User's avatar
Tinderbox User committed
67
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
68
will send the query to the local host\&.
69
.PP
Automatic Updater's avatar
regen    
Automatic Updater committed
70
71
When no command line arguments or options are given,
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
72
will perform an NS query for "\&." (the root)\&.
Andreas Gustafsson's avatar
Andreas Gustafsson committed
73
.PP
Automatic Updater's avatar
regen    
Automatic Updater committed
74
75
76
It is possible to set per\-user defaults for
\fBdig\fR
via
Tinderbox User's avatar
Tinderbox User committed
77
${HOME}/\&.digrc\&. This file is read and any options in it are applied before the command line arguments\&.
Mark Andrews's avatar
regen    
Mark Andrews committed
78
.PP
Tinderbox User's avatar
Tinderbox User committed
79
The IN and CH class names overlap with the IN and CH top level domain names\&. Either use the
Automatic Updater's avatar
regen    
Automatic Updater committed
80
81
82
\fB\-t\fR
and
\fB\-c\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
83
options to specify the type and class, use the
Automatic Updater's avatar
regen    
Automatic Updater committed
84
\fB\-q\fR
Tinderbox User's avatar
Tinderbox User committed
85
the specify the domain name, or use "IN\&." and "CH\&." when looking up these top level domains\&.
86
87
.SH "SIMPLE USAGE"
.PP
Automatic Updater's avatar
regen    
Automatic Updater committed
88
89
90
91
A typical invocation of
\fBdig\fR
looks like:
.sp
Tinderbox User's avatar
Tinderbox User committed
92
.if n \{\
Automatic Updater's avatar
regen    
Automatic Updater committed
93
.RS 4
Tinderbox User's avatar
Tinderbox User committed
94
.\}
95
96
97
.nf
 dig @server name type 
.fi
Tinderbox User's avatar
Tinderbox User committed
98
.if n \{\
Automatic Updater's avatar
regen    
Automatic Updater committed
99
.RE
Tinderbox User's avatar
Tinderbox User committed
100
.\}
Automatic Updater's avatar
regen    
Automatic Updater committed
101
102
103
.sp
where:
.PP
104
\fBserver\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
105
.RS 4
Tinderbox User's avatar
Tinderbox User committed
106
is the name or IP address of the name server to query\&. This can be an IPv4 address in dotted\-decimal notation or an IPv6 address in colon\-delimited notation\&. When the supplied
Automatic Updater's avatar
regen    
Automatic Updater committed
107
108
109
\fIserver\fR
argument is a hostname,
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
110
resolves that name before querying that name server\&.
Tinderbox User's avatar
Tinderbox User committed
111
112
.sp
If no
Automatic Updater's avatar
regen    
Automatic Updater committed
113
114
115
116
\fIserver\fR
argument is provided,
\fBdig\fR
consults
Tinderbox User's avatar
Tinderbox User committed
117
/etc/resolv\&.conf; if an address is found there, it queries the name server at that address\&. If either of the
Tinderbox User's avatar
Tinderbox User committed
118
119
120
\fB\-4\fR
or
\fB\-6\fR
Tinderbox User's avatar
Tinderbox User committed
121
options are in use, then only addresses for the corresponding transport will be tried\&. If no usable addresses are found,
Tinderbox User's avatar
Tinderbox User committed
122
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
123
will send the query to the local host\&. The reply from the name server that responds is displayed\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
124
125
.RE
.PP
126
\fBname\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
127
.RS 4
Tinderbox User's avatar
Tinderbox User committed
128
is the name of the resource record that is to be looked up\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
129
130
.RE
.PP
131
\fBtype\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
132
.RS 4
Tinderbox User's avatar
Tinderbox User committed
133
indicates what type of query is required \(em ANY, A, MX, SIG, etc\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
134
\fItype\fR
Tinderbox User's avatar
Tinderbox User committed
135
can be any valid query type\&. If no
Automatic Updater's avatar
regen    
Automatic Updater committed
136
137
138
\fItype\fR
argument is supplied,
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
139
will perform a lookup for an A record\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
140
.RE
141
142
.SH "OPTIONS"
.PP
Tinderbox User's avatar
Tinderbox User committed
143
144
\-4
.RS 4
Tinderbox User's avatar
Tinderbox User committed
145
Use IPv4 only\&.
Tinderbox User's avatar
Tinderbox User committed
146
.RE
147
.PP
Tinderbox User's avatar
Tinderbox User committed
148
149
\-6
.RS 4
Tinderbox User's avatar
Tinderbox User committed
150
Use IPv6 only\&.
Tinderbox User's avatar
Tinderbox User committed
151
152
153
154
.RE
.PP
\-b \fIaddress\fR\fI[#port]\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
155
Set the source IP address of the query\&. The
Tinderbox User's avatar
Tinderbox User committed
156
\fIaddress\fR
Tinderbox User's avatar
Tinderbox User committed
157
must be a valid address on one of the host\*(Aqs network interfaces, or "0\&.0\&.0\&.0" or "::"\&. An optional port may be specified by appending "#<port>"
Tinderbox User's avatar
Tinderbox User committed
158
159
160
161
.RE
.PP
\-c \fIclass\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
162
Set the query class\&. The default
Automatic Updater's avatar
regen    
Automatic Updater committed
163
\fIclass\fR
Tinderbox User's avatar
Tinderbox User committed
164
is IN; other classes are HS for Hesiod records or CH for Chaosnet records\&.
Tinderbox User's avatar
Tinderbox User committed
165
.RE
166
.PP
Tinderbox User's avatar
Tinderbox User committed
167
168
169
170
171
\-f \fIfile\fR
.RS 4
Batch mode:
\fBdig\fR
reads a list of lookup requests to process from the given
Tinderbox User's avatar
Tinderbox User committed
172
\fIfile\fR\&. Each line in the file should be organized in the same way they would be presented as queries to
Automatic Updater's avatar
regen    
Automatic Updater committed
173
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
174
using the command\-line interface\&.
Tinderbox User's avatar
Tinderbox User committed
175
.RE
176
.PP
Tinderbox User's avatar
Tinderbox User committed
177
178
\-i
.RS 4
Tinderbox User's avatar
Tinderbox User committed
179
Do reverse IPv6 lookups using the obsolete RFC1886 IP6\&.INT domain, which is no longer in use\&. Obsolete bit string label queries (RFC2874) are not attempted\&.
Tinderbox User's avatar
Tinderbox User committed
180
.RE
Automatic Updater's avatar
regen    
Automatic Updater committed
181
.PP
Tinderbox User's avatar
Tinderbox User committed
182
183
\-k \fIkeyfile\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
184
185
186
Sign queries using TSIG using a key read from the given file\&. Key files can be generated using
\fBtsig-keygen\fR(8)\&. When using TSIG authentication with
\fBdig\fR, the name server that is queried needs to know the key and algorithm that is being used\&. In BIND, this is done by providing appropriate
Tinderbox User's avatar
Tinderbox User committed
187
188
189
190
\fBkey\fR
and
\fBserver\fR
statements in
Tinderbox User's avatar
Tinderbox User committed
191
named\&.conf\&.
Tinderbox User's avatar
Tinderbox User committed
192
.RE
193
.PP
Tinderbox User's avatar
Tinderbox User committed
194
195
\-m
.RS 4
Tinderbox User's avatar
Tinderbox User committed
196
Enable memory usage debugging\&.
Tinderbox User's avatar
Tinderbox User committed
197
.RE
Mark Andrews's avatar
regen    
Mark Andrews committed
198
.PP
Tinderbox User's avatar
Tinderbox User committed
199
200
\-p \fIport\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
201
Send the query to a non\-standard port on the server, instead of the default port 53\&. This option would be used to test a name server that has been configured to listen for queries on a non\-standard port number\&.
Tinderbox User's avatar
Tinderbox User committed
202
203
204
205
.RE
.PP
\-q \fIname\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
206
The domain name to query\&. This is useful to distinguish the
Tinderbox User's avatar
Tinderbox User committed
207
\fIname\fR
Tinderbox User's avatar
Tinderbox User committed
208
from other arguments\&.
Tinderbox User's avatar
Tinderbox User committed
209
210
211
212
.RE
.PP
\-t \fItype\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
213
The resource record type to query\&. It can be any valid query type which is supported in BIND 9\&. The default query type is "A", unless the
Automatic Updater's avatar
regen    
Automatic Updater committed
214
\fB\-x\fR
Tinderbox User's avatar
Tinderbox User committed
215
option is supplied to indicate a reverse lookup\&. A zone transfer can be requested by specifying a type of AXFR\&. When an incremental zone transfer (IXFR) is required, set the
Automatic Updater's avatar
regen    
Automatic Updater committed
216
\fItype\fR
Tinderbox User's avatar
Tinderbox User committed
217
to
Tinderbox User's avatar
Tinderbox User committed
218
219
ixfr=N\&. The incremental zone transfer will contain the changes made to the zone since the serial number in the zone\*(Aqs SOA record was
\fIN\fR\&.
Tinderbox User's avatar
Tinderbox User committed
220
.RE
221
.PP
Tinderbox User's avatar
Tinderbox User committed
222
223
\-v
.RS 4
Tinderbox User's avatar
Tinderbox User committed
224
Print the version number and exit\&.
Tinderbox User's avatar
Tinderbox User committed
225
.RE
Tinderbox User's avatar
Tinderbox User committed
226
.PP
Tinderbox User's avatar
Tinderbox User committed
227
228
\-x \fIaddr\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
229
Simplified reverse lookups, for mapping addresses to names\&. The
Automatic Updater's avatar
regen    
Automatic Updater committed
230
\fIaddr\fR
Tinderbox User's avatar
Tinderbox User committed
231
is an IPv4 address in dotted\-decimal notation, or a colon\-delimited IPv6 address\&. When the
Tinderbox User's avatar
Tinderbox User committed
232
233
\fB\-x\fR
is used, there is no need to provide the
Automatic Updater's avatar
regen    
Automatic Updater committed
234
235
236
237
\fIname\fR,
\fIclass\fR
and
\fItype\fR
Tinderbox User's avatar
Tinderbox User committed
238
arguments\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
239
240
\fBdig\fR
automatically performs a lookup for a name like
Tinderbox User's avatar
Tinderbox User committed
241
242
94\&.2\&.0\&.192\&.in\-addr\&.arpa
and sets the query type and class to PTR and IN respectively\&. IPv6 addresses are looked up using nibble format under the IP6\&.ARPA domain (but see also the
Automatic Updater's avatar
regen    
Automatic Updater committed
243
\fB\-i\fR
Tinderbox User's avatar
Tinderbox User committed
244
option)\&.
Tinderbox User's avatar
Tinderbox User committed
245
.RE
246
.PP
Tinderbox User's avatar
Tinderbox User committed
247
248
\-y \fI[hmac:]\fR\fIkeyname:secret\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
249
Sign queries using TSIG with the given authentication key\&.
Tinderbox User's avatar
Tinderbox User committed
250
251
252
\fIkeyname\fR
is the name of the key, and
\fIsecret\fR
Tinderbox User's avatar
Tinderbox User committed
253
is the base64 encoded shared secret\&.
Tinderbox User's avatar
Tinderbox User committed
254
255
256
257
258
259
260
\fIhmac\fR
is the name of the key algorithm; valid choices are
hmac\-md5,
hmac\-sha1,
hmac\-sha224,
hmac\-sha256,
hmac\-sha384, or
Tinderbox User's avatar
Tinderbox User committed
261
hmac\-sha512\&. If
Tinderbox User's avatar
Tinderbox User committed
262
263
\fIhmac\fR
is not specified, the default is
Tinderbox User's avatar
Tinderbox User committed
264
265
266
hmac\-md5
or if MD5 was disabled
hmac\-sha256\&.
Tinderbox User's avatar
Tinderbox User committed
267
268
.sp
NOTE: You should use the
Automatic Updater's avatar
regen    
Automatic Updater committed
269
\fB\-k\fR
Tinderbox User's avatar
Tinderbox User committed
270
option and avoid the
Automatic Updater's avatar
regen    
Automatic Updater committed
271
\fB\-y\fR
Tinderbox User's avatar
Tinderbox User committed
272
option, because with
Automatic Updater's avatar
regen    
Automatic Updater committed
273
\fB\-y\fR
Tinderbox User's avatar
Tinderbox User committed
274
the shared secret is supplied as a command line argument in clear text\&. This may be visible in the output from
Automatic Updater's avatar
regen    
Automatic Updater committed
275
\fBps\fR(1)
Tinderbox User's avatar
Tinderbox User committed
276
or in a history file maintained by the user\*(Aqs shell\&.
Tinderbox User's avatar
Tinderbox User committed
277
.RE
278
279
.SH "QUERY OPTIONS"
.PP
Automatic Updater's avatar
regen    
Automatic Updater committed
280
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
281
provides a number of query options which affect the way in which lookups are made and the results displayed\&. Some of these set or reset flag bits in the query header, some determine which sections of the answer get printed, and others determine the timeout and retry strategies\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
282
.PP
Tinderbox User's avatar
Tinderbox User committed
283
Each query option is identified by a keyword preceded by a plus sign (+)\&. Some keywords set or reset an option\&. These may be preceded by the string
Automatic Updater's avatar
regen    
Automatic Updater committed
284
no
Tinderbox User's avatar
Tinderbox User committed
285
286
to negate the meaning of that keyword\&. Other keywords assign values to options like the timeout interval\&. They have the form
\fB+keyword=value\fR\&. Keywords may be abbreviated, provided the abbreviation is unambiguous; for example,
Tinderbox User's avatar
Tinderbox User committed
287
288
+cd
is equivalent to
Tinderbox User's avatar
Tinderbox User committed
289
+cdflag\&. The query options are:
Mark Andrews's avatar
regen    
Mark Andrews committed
290
.PP
Tinderbox User's avatar
Tinderbox User committed
291
\fB+[no]aaflag\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
292
.RS 4
Tinderbox User's avatar
Tinderbox User committed
293
A synonym for
Tinderbox User's avatar
Tinderbox User committed
294
\fI+[no]aaonly\fR\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
295
296
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
297
\fB+[no]aaonly\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
298
.RS 4
Tinderbox User's avatar
Tinderbox User committed
299
Sets the "aa" flag in the query\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
300
301
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
302
\fB+[no]additional\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
303
.RS 4
Tinderbox User's avatar
Tinderbox User committed
304
Display [do not display] the additional section of a reply\&. The default is to display it\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
305
306
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
307
\fB+[no]adflag\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
308
.RS 4
Tinderbox User's avatar
Tinderbox User committed
309
Set [do not set] the AD (authentic data) bit in the query\&. This requests the server to return whether all of the answer and authority sections have all been validated as secure according to the security policy of the server\&. AD=1 indicates that all records have been validated as secure and the answer is not from a OPT\-OUT range\&. AD=0 indicate that some part of the answer was insecure or not validated\&. This bit is set by default\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
310
311
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
312
\fB+[no]all\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
313
.RS 4
Tinderbox User's avatar
Tinderbox User committed
314
Set or clear all display flags\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
315
316
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
317
\fB+[no]answer\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
318
.RS 4
Tinderbox User's avatar
Tinderbox User committed
319
Display [do not display] the answer section of a reply\&. The default is to display it\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
320
321
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
322
\fB+[no]authority\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
323
.RS 4
Tinderbox User's avatar
Tinderbox User committed
324
Display [do not display] the authority section of a reply\&. The default is to display it\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
325
326
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
327
328
\fB+[no]badcookie\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
329
Retry lookup with the new server cookie if a BADCOOKIE response is received\&.
Tinderbox User's avatar
Tinderbox User committed
330
331
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
332
\fB+[no]besteffort\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
333
.RS 4
Tinderbox User's avatar
Tinderbox User committed
334
Attempt to display the contents of messages which are malformed\&. The default is to not display malformed answers\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
335
336
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
337
\fB+bufsize=B\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
338
.RS 4
Tinderbox User's avatar
Tinderbox User committed
339
340
Set the UDP message buffer size advertised using EDNS0 to
\fIB\fR
Tinderbox User's avatar
Tinderbox User committed
341
bytes\&. The maximum and minimum sizes of this buffer are 65535 and 0 respectively\&. Values outside this range are rounded up or down appropriately\&. Values other than zero will cause a EDNS query to be sent\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
342
343
.RE
.PP
344
\fB+[no]cdflag\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
345
.RS 4
Tinderbox User's avatar
Tinderbox User committed
346
Set [do not set] the CD (checking disabled) bit in the query\&. This requests the server to not perform DNSSEC validation of responses\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
347
348
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
349
\fB+[no]class\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
350
.RS 4
Tinderbox User's avatar
Tinderbox User committed
351
Display [do not display] the CLASS when printing the record\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
352
353
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
354
\fB+[no]cmd\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
355
.RS 4
Tinderbox User's avatar
Tinderbox User committed
356
357
Toggles the printing of the initial comment in the output identifying the version of
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
358
and the query options that have been applied\&. This comment is printed by default\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
359
360
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
361
\fB+[no]comments\fR
Tinderbox User's avatar
Tinderbox User committed
362
.RS 4
Tinderbox User's avatar
Tinderbox User committed
363
Toggle the display of comment lines in the output\&. The default is to print comments\&.
Tinderbox User's avatar
Tinderbox User committed
364
365
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
366
367
\fB+[no]cookie\fR\fB[=####]\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
368
369
Send a COOKIE EDNS option, with optional value\&. Replaying a COOKIE from a previous response will allow the server to identify a previous client\&. The default is
\fB+cookie\fR\&.
Tinderbox User's avatar
Tinderbox User committed
370
371
.sp
\fB+cookie\fR
Tinderbox User's avatar
Tinderbox User committed
372
is also set when +trace is set to better emulate the default queries from a nameserver\&.
Tinderbox User's avatar
Tinderbox User committed
373
374
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
375
\fB+[no]crypto\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
376
.RS 4
Tinderbox User's avatar
Tinderbox User committed
377
Toggle the display of cryptographic fields in DNSSEC records\&. The contents of these field are unnecessary to debug most DNSSEC validation failures and removing them makes it easier to see the common failures\&. The default is to display the fields\&. When omitted they are replaced by the string "[omitted]" or in the DNSKEY case the key id is displayed as the replacement, e\&.g\&. "[ key id = value ]"\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
378
379
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
380
\fB+[no]defname\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
381
.RS 4
Tinderbox User's avatar
Tinderbox User committed
382
383
Deprecated, treated as a synonym for
\fI+[no]search\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
384
385
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
386
387
\fB+[no]dnssec\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
388
Requests DNSSEC records be sent by setting the DNSSEC OK bit (DO) in the OPT record in the additional section of the query\&.
Tinderbox User's avatar
Tinderbox User committed
389
390
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
391
\fB+domain=somename\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
392
.RS 4
Tinderbox User's avatar
Tinderbox User committed
393
394
395
396
Set the search list to contain the single domain
\fIsomename\fR, as if specified in a
\fBdomain\fR
directive in
Tinderbox User's avatar
Tinderbox User committed
397
/etc/resolv\&.conf, and enable search list processing as if the
Tinderbox User's avatar
Tinderbox User committed
398
\fI+search\fR
Tinderbox User's avatar
Tinderbox User committed
399
option were given\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
400
401
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
402
403
\fB+dscp=value\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
404
Set the DSCP code point to be used when sending the query\&. Valid DSCP code points are in the range [0\&.\&.63]\&. By default no code point is explicitly set\&.
Tinderbox User's avatar
Tinderbox User committed
405
406
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
407
\fB+[no]edns[=#]\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
408
.RS 4
Tinderbox User's avatar
Tinderbox User committed
409
Specify the EDNS version to query with\&. Valid values are 0 to 255\&. Setting the EDNS version will cause a EDNS query to be sent\&.
Tinderbox User's avatar
Tinderbox User committed
410
\fB+noedns\fR
Tinderbox User's avatar
Tinderbox User committed
411
clears the remembered EDNS version\&. EDNS is set to 0 by default\&.
Tinderbox User's avatar
Tinderbox User committed
412
413
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
414
415
\fB+[no]ednsflags[=#]\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
416
Set the must\-be\-zero EDNS flags bits (Z bits) to the specified value\&. Decimal, hex and octal encodings are accepted\&. Setting a named flag (e\&.g\&. DO) will silently be ignored\&. By default, no Z bits are set\&.
Tinderbox User's avatar
Tinderbox User committed
417
418
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
419
420
\fB+[no]ednsnegotiation\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
421
Enable / disable EDNS version negotiation\&. By default EDNS version negotiation is enabled\&.
Tinderbox User's avatar
Tinderbox User committed
422
423
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
424
425
426
427
428
429
\fB+[no]ednsopt[=code[:value]]\fR
.RS 4
Specify EDNS option with code point
\fBcode\fR
and optionally payload of
\fBvalue\fR
Tinderbox User's avatar
Tinderbox User committed
430
as a hexadecimal string\&.
Tinderbox User's avatar
Tinderbox User committed
431
\fB+noednsopt\fR
Tinderbox User's avatar
Tinderbox User committed
432
clears the EDNS options to be sent\&.
Tinderbox User's avatar
Tinderbox User committed
433
434
435
436
.RE
.PP
\fB+[no]expire\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
437
Send an EDNS Expire option\&.
Tinderbox User's avatar
Tinderbox User committed
438
439
440
441
.RE
.PP
\fB+[no]fail\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
442
Do not try the next server if you receive a SERVFAIL\&. The default is to not try the next server which is the reverse of normal stub resolver behavior\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
443
444
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
445
446
\fB+[no]header\-only\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
447
Send a query with a DNS header without a question section\&. The default is to add a question section\&. The query type and query name are ignored when this is set\&.
Tinderbox User's avatar
Tinderbox User committed
448
449
.RE
.PP
450
\fB+[no]identify\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
451
452
453
.RS 4
Show [or do not show] the IP address and port number that supplied the answer when the
\fI+short\fR
Tinderbox User's avatar
Tinderbox User committed
454
option is enabled\&. If short form answers are requested, the default is not to show the source address and port number of the server that provided the answer\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
455
456
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
457
458
459
460
461
\fB+[no]idnout\fR
.RS 4
Convert [do not convert] puny code on output\&. This requires IDN SUPPORT to have been enabled at compile time\&. The default is to convert output\&.
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
462
\fB+[no]ignore\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
463
.RS 4
Tinderbox User's avatar
Tinderbox User committed
464
Ignore truncation in UDP responses instead of retrying with TCP\&. By default, TCP retries are performed\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
465
466
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
467
\fB+[no]keepopen\fR
Automatic Updater's avatar
Automatic Updater committed
468
.RS 4
Tinderbox User's avatar
Tinderbox User committed
469
470
Keep the TCP socket open between queries and reuse it rather than creating a new TCP socket for each lookup\&. The default is
\fB+nokeepopen\fR\&.
Automatic Updater's avatar
Automatic Updater committed
471
472
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
473
474
475
476
477
478
\fB+[no]mapped\fR
.RS 4
Allow mapped IPv4 over IPv6 addresses to be used\&. The default is
\fB+mapped\fR\&.
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
479
\fB+[no]multiline\fR
Tinderbox User's avatar
Tinderbox User committed
480
.RS 4
Tinderbox User's avatar
Tinderbox User committed
481
Print records like the SOA records in a verbose multi\-line format with human\-readable comments\&. The default is to print each record on a single line, to facilitate machine parsing of the
Tinderbox User's avatar
Tinderbox User committed
482
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
483
output\&.
Tinderbox User's avatar
Tinderbox User committed
484
485
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
486
\fB+ndots=D\fR
Automatic Updater's avatar
Automatic Updater committed
487
.RS 4
Tinderbox User's avatar
Tinderbox User committed
488
489
490
491
Set the number of dots that have to appear in
\fIname\fR
to
\fID\fR
Tinderbox User's avatar
Tinderbox User committed
492
493
for it to be considered absolute\&. The default value is that defined using the ndots statement in
/etc/resolv\&.conf, or 1 if no ndots statement is present\&. Names with fewer dots are interpreted as relative names and will be searched for in the domains listed in the
Tinderbox User's avatar
Tinderbox User committed
494
\fBsearch\fR
Automatic Updater's avatar
Automatic Updater committed
495
or
Tinderbox User's avatar
Tinderbox User committed
496
497
\fBdomain\fR
directive in
Tinderbox User's avatar
Tinderbox User committed
498
/etc/resolv\&.conf
Tinderbox User's avatar
Tinderbox User committed
499
500
if
\fB+search\fR
Tinderbox User's avatar
Tinderbox User committed
501
is set\&.
Automatic Updater's avatar
Automatic Updater committed
502
503
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
504
\fB+[no]nsid\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
505
.RS 4
Tinderbox User's avatar
Tinderbox User committed
506
Include an EDNS name server ID request when sending a query\&.
Tinderbox User's avatar
Tinderbox User committed
507
508
509
510
511
512
.RE
.PP
\fB+[no]nssearch\fR
.RS 4
When this option is set,
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
513
attempts to find the authoritative name servers for the zone containing the name being looked up and display the SOA record that each name server has for the zone\&.
Tinderbox User's avatar
Tinderbox User committed
514
515
516
517
.RE
.PP
\fB+[no]onesoa\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
518
Print only one (starting) SOA record when performing an AXFR\&. The default is to print both the starting and ending SOA records\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
519
520
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
521
522
\fB+[no]opcode=value\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
523
Set [restore] the DNS message opcode to the specified value\&. The default value is QUERY (0)\&.
Tinderbox User's avatar
Tinderbox User committed
524
525
.RE
.PP
526
\fB+[no]qr\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
527
.RS 4
Tinderbox User's avatar
Tinderbox User committed
528
Print [do not print] the query as it is sent\&. By default, the query is not printed\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
529
530
.RE
.PP
531
\fB+[no]question\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
532
.RS 4
Tinderbox User's avatar
Tinderbox User committed
533
Print [do not print] the question section of a query when an answer is returned\&. The default is to print the question section as a comment\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
534
535
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
536
537
538
\fB+[no]rdflag\fR
.RS 4
A synonym for
Tinderbox User's avatar
Tinderbox User committed
539
\fI+[no]recurse\fR\&.
Tinderbox User's avatar
Tinderbox User committed
540
541
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
542
\fB+[no]recurse\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
543
.RS 4
Tinderbox User's avatar
Tinderbox User committed
544
Toggle the setting of the RD (recursion desired) bit in the query\&. This bit is set by default, which means
Tinderbox User's avatar
Tinderbox User committed
545
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
546
normally sends recursive queries\&. Recursion is automatically disabled when the
Tinderbox User's avatar
Tinderbox User committed
547
548
549
\fI+nssearch\fR
or
\fI+trace\fR
Tinderbox User's avatar
Tinderbox User committed
550
query options are used\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
551
552
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
553
\fB+retry=T\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
554
.RS 4
Tinderbox User's avatar
Tinderbox User committed
555
556
Sets the number of times to retry UDP queries to server to
\fIT\fR
Tinderbox User's avatar
Tinderbox User committed
557
558
instead of the default, 2\&. Unlike
\fI+tries\fR, this does not include the initial query\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
559
560
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
561
\fB+[no]rrcomments\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
562
.RS 4
Tinderbox User's avatar
Tinderbox User committed
563
Toggle the display of per\-record comments in the output (for example, human\-readable key information about DNSKEY records)\&. The default is not to print record comments unless multiline mode is active\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
564
565
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
566
\fB+[no]search\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
567
.RS 4
Tinderbox User's avatar
Tinderbox User committed
568
Use [do not use] the search list defined by the searchlist or domain directive in
Tinderbox User's avatar
Tinderbox User committed
569
570
resolv\&.conf
(if any)\&. The search list is not used by default\&.
Tinderbox User's avatar
Tinderbox User committed
571
.sp
Tinderbox User's avatar
Tinderbox User committed
572
573
\*(Aqndots\*(Aq from
resolv\&.conf
Tinderbox User's avatar
Tinderbox User committed
574
575
(default 1) which may be overridden by
\fI+ndots\fR
Tinderbox User's avatar
Tinderbox User committed
576
determines if the name will be treated as relative or not and hence whether a search is eventually performed or not\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
577
578
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
579
\fB+[no]short\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
580
.RS 4
Tinderbox User's avatar
Tinderbox User committed
581
Provide a terse answer\&. The default is to print the answer in a verbose form\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
582
583
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
584
\fB+[no]showsearch\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
585
.RS 4
Tinderbox User's avatar
Tinderbox User committed
586
Perform [do not perform] a search showing intermediate results\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
587
588
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
589
\fB+[no]sigchase\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
590
.RS 4
Tinderbox User's avatar
Tinderbox User committed
591
Chase DNSSEC signature chains\&. Requires dig be compiled with \-DDIG_SIGCHASE\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
592
593
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
594
\fB+split=W\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
595
.RS 4
Tinderbox User's avatar
Tinderbox User committed
596
597
598
599
Split long hex\- or base64\-formatted fields in resource records into chunks of
\fIW\fR
characters (where
\fIW\fR
Tinderbox User's avatar
Tinderbox User committed
600
is rounded up to the nearest multiple of 4)\&.
Tinderbox User's avatar
Tinderbox User committed
601
602
603
\fI+nosplit\fR
or
\fI+split=0\fR
Tinderbox User's avatar
Tinderbox User committed
604
causes fields not to be split at all\&. The default is 56 characters, or 44 characters when multiline mode is active\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
605
606
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
607
\fB+[no]stats\fR
Tinderbox User's avatar
Tinderbox User committed
608
.RS 4
Tinderbox User's avatar
Tinderbox User committed
609
This query option toggles the printing of statistics: when the query was made, the size of the reply and so on\&. The default behavior is to print the query statistics\&.
Tinderbox User's avatar
Tinderbox User committed
610
611
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
612
\fB+[no]subnet=addr[/prefix\-length]\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
613
.RS 4
Tinderbox User's avatar
Tinderbox User committed
614
615
616
617
Send (don\*(Aqt send) an EDNS Client Subnet option with the specified IP address or network prefix\&.
.sp
\fBdig +subnet=0\&.0\&.0\&.0/0\fR, or simply
\fBdig +subnet=0\fR
Tinderbox User's avatar
Tinderbox User committed
618
for short, sends an EDNS CLIENT\-SUBNET option with an empty address and a source prefix\-length of zero, which signals a resolver that the client\*(Aqs address information must
Tinderbox User's avatar
Tinderbox User committed
619
620
\fInot\fR
be used when resolving this query\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
621
622
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
623
\fB+[no]tcp\fR
Automatic Updater's avatar
Automatic Updater committed
624
.RS 4
Tinderbox User's avatar
Tinderbox User committed
625
Use [do not use] TCP when querying name servers\&. The default behavior is to use UDP unless an
Tinderbox User's avatar
Tinderbox User committed
626
ixfr=N
Tinderbox User's avatar
Tinderbox User committed
627
query is requested, in which case the default is TCP\&. AXFR queries always use TCP\&.
Automatic Updater's avatar
Automatic Updater committed
628
629
.RE
.PP
Francis Dupont's avatar
Francis Dupont committed
630
\fB+timeout=T\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
631
.RS 4
Tinderbox User's avatar
Tinderbox User committed
632
633
Sets the timeout for a query to
\fIT\fR
Tinderbox User's avatar
Tinderbox User committed
634
seconds\&. The default timeout is 5 seconds\&. An attempt to set
Tinderbox User's avatar
Tinderbox User committed
635
\fIT\fR
Tinderbox User's avatar
Tinderbox User committed
636
to less than 1 will result in a query timeout of 1 second being applied\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
637
638
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
639
\fB+[no]topdown\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
640
.RS 4
Tinderbox User's avatar
Tinderbox User committed
641
When chasing DNSSEC signature chains perform a top\-down validation\&. Requires dig be compiled with \-DDIG_SIGCHASE\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
642
643
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
644
\fB+[no]trace\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
645
.RS 4
Tinderbox User's avatar
Tinderbox User committed
646
Toggle tracing of the delegation path from the root name servers for the name being looked up\&. Tracing is disabled by default\&. When tracing is enabled,
Tinderbox User's avatar
Tinderbox User committed
647
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
648
makes iterative queries to resolve the name being looked up\&. It will follow referrals from the root servers, showing the answer from each server that was used to resolve the lookup\&.
Tinderbox User's avatar
Tinderbox User committed
649
.sp
Tinderbox User's avatar
Tinderbox User committed
650
If @server is also specified, it affects only the initial query for the root zone name servers\&.
Tinderbox User's avatar
Tinderbox User committed
651
.sp
Tinderbox User's avatar
Tinderbox User committed
652
\fB+dnssec\fR
Tinderbox User's avatar
Tinderbox User committed
653
is also set when +trace is set to better emulate the default queries from a nameserver\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
654
655
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
656
\fB+tries=T\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
657
.RS 4
Tinderbox User's avatar
Tinderbox User committed
658
659
Sets the number of times to try UDP queries to server to
\fIT\fR
Tinderbox User's avatar
Tinderbox User committed
660
instead of the default, 3\&. If
Tinderbox User's avatar
Tinderbox User committed
661
\fIT\fR
Tinderbox User's avatar
Tinderbox User committed
662
is less than or equal to zero, the number of tries is silently rounded up to 1\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
663
664
.RE
.PP
Rob Austein's avatar
regen    
Rob Austein committed
665
\fB+trusted\-key=####\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
666
667
.RS 4
Specifies a file containing trusted keys to be used with
Tinderbox User's avatar
Tinderbox User committed
668
\fB+sigchase\fR\&. Each DNSKEY record must be on its own line\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
669
.sp
Automatic Updater's avatar
regen    
Automatic Updater committed
670
If not specified,
Automatic Updater's avatar
regen    
Automatic Updater committed
671
672
\fBdig\fR
will look for
Tinderbox User's avatar
Tinderbox User committed
673
/etc/trusted\-key\&.key
Automatic Updater's avatar
regen    
Automatic Updater committed
674
then
Tinderbox User's avatar
Tinderbox User committed
675
676
trusted\-key\&.key
in the current directory\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
677
.sp
Tinderbox User's avatar
Tinderbox User committed
678
Requires dig be compiled with \-DDIG_SIGCHASE\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
679
680
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
681
\fB+[no]ttlid\fR
Tinderbox User's avatar
Tinderbox User committed
682
.RS 4
Tinderbox User's avatar
Tinderbox User committed
683
Display [do not display] the TTL when printing the record\&.
Tinderbox User's avatar
Tinderbox User committed
684
685
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
686
\fB+[no]ttlunits\fR
Tinderbox User's avatar
Tinderbox User committed
687
.RS 4
Tinderbox User's avatar
Tinderbox User committed
688
Display [do not display] the TTL in friendly human\-readable time units of "s", "m", "h", "d", and "w", representing seconds, minutes, hours, days and weeks\&. Implies +ttlid\&.
Tinderbox User's avatar
Tinderbox User committed
689
690
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
691
692
693
694
695
\fB+[no]unknownformat\fR
.RS 4
Print all RDATA in unknown RR type presentation format (RFC 3597)\&. The default is to print RDATA for known types in the type\*(Aqs presentation format\&.
.RE
.PP
Tinderbox User's avatar
Tinderbox User committed
696
\fB+[no]vc\fR
Tinderbox User's avatar
Tinderbox User committed
697
.RS 4
Tinderbox User's avatar
Tinderbox User committed
698
Use [do not use] TCP when querying name servers\&. This alternate syntax to
Tinderbox User's avatar
Tinderbox User committed
699
\fI+[no]tcp\fR
Tinderbox User's avatar
Tinderbox User committed
700
is provided for backwards compatibility\&. The "vc" stands for "virtual circuit"\&.
Tinderbox User's avatar
Tinderbox User committed
701
.RE
Tinderbox User's avatar
Tinderbox User committed
702
703
704
.PP
\fB+[no]zflag\fR
.RS 4
Tinderbox User's avatar
Tinderbox User committed
705
Set [do not set] the last unassigned DNS header flag in a DNS query\&. This flag is off by default\&.
Tinderbox User's avatar
Tinderbox User committed
706
.RE
707
708
.SH "MULTIPLE QUERIES"
.PP
Automatic Updater's avatar
regen    
Automatic Updater committed
709
710
711
712
The BIND 9 implementation of
\fBdig \fR
supports specifying multiple queries on the command line (in addition to supporting the
\fB\-f\fR
Tinderbox User's avatar
Tinderbox User committed
713
batch file option)\&. Each of those queries can be supplied with its own set of flags, options and query options\&.
714
.PP
Automatic Updater's avatar
regen    
Automatic Updater committed
715
716
In this case, each
\fIquery\fR
Tinderbox User's avatar
Tinderbox User committed
717
argument represent an individual query in the command\-line syntax described above\&. Each consists of any of the standard options and flags, the name to be looked up, an optional query type and class and any query options that should be applied to that query\&.
718
.PP
Tinderbox User's avatar
Tinderbox User committed
719
A global set of query options, which should be applied to all queries, can also be supplied\&. These global query options must precede the first tuple of name, class, type, options, flags, and query options supplied on the command line\&. Any global query options (except
Automatic Updater's avatar
regen    
Automatic Updater committed
720
\fB+[no]cmd\fR
Tinderbox User's avatar
Tinderbox User committed
721
722
723
and
\fB+[no]short\fR
options) can be overridden by a query\-specific set of query options\&. For example:
Automatic Updater's avatar
regen    
Automatic Updater committed
724
.sp
Tinderbox User's avatar
Tinderbox User committed
725
.if n \{\
Automatic Updater's avatar
regen    
Automatic Updater committed
726
.RS 4
Tinderbox User's avatar
Tinderbox User committed
727
.\}
728
.nf
Tinderbox User's avatar
Tinderbox User committed
729
dig +qr www\&.isc\&.org any \-x 127\&.0\&.0\&.1 isc\&.org ns +noqr
730
.fi
Tinderbox User's avatar
Tinderbox User committed
731
.if n \{\
Automatic Updater's avatar
regen    
Automatic Updater committed
732
.RE
Tinderbox User's avatar
Tinderbox User committed
733
.\}
Automatic Updater's avatar
regen    
Automatic Updater committed
734
735
736
737
.sp
shows how
\fBdig\fR
could be used from the command line to make three lookups: an ANY query for
Tinderbox User's avatar
Tinderbox User committed
738
739
www\&.isc\&.org, a reverse lookup of 127\&.0\&.0\&.1 and a query for the NS records of
isc\&.org\&. A global query option of
Automatic Updater's avatar
regen    
Automatic Updater committed
740
741
742
\fI+qr\fR
is applied, so that
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
743
shows the initial query it made for each lookup\&. The final query has a local query option of
Automatic Updater's avatar
regen    
Automatic Updater committed
744
745
746
747
\fI+noqr\fR
which means that
\fBdig\fR
will not print the initial query when it looks up the NS records for
Tinderbox User's avatar
Tinderbox User committed
748
isc\&.org\&.
Mark Andrews's avatar
regen    
Mark Andrews committed
749
750
.SH "IDN SUPPORT"
.PP
Automatic Updater's avatar
regen    
Automatic Updater committed
751
752
If
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
753
has been built with IDN (internationalized domain name) support, it can accept and display non\-ASCII domain names\&.
Automatic Updater's avatar
regen    
Automatic Updater committed
754
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
755
appropriately converts character encoding of domain name before sending a request to DNS server or displaying a reply from the server\&. If you\*(Aqd like to turn off the IDN support for some reason, defines the
Automatic Updater's avatar
regen    
Automatic Updater committed
756
\fBIDN_DISABLE\fR
Tinderbox User's avatar
Tinderbox User committed
757
environment variable\&. The IDN support is disabled if the variable is set when
Automatic Updater's avatar
regen    
Automatic Updater committed
758
\fBdig\fR
Tinderbox User's avatar
Tinderbox User committed
759
runs\&.
760
761
.SH "FILES"
.PP
Tinderbox User's avatar
Tinderbox User committed
762
/etc/resolv\&.conf
Andreas Gustafsson's avatar
Andreas Gustafsson committed
763
.PP
Tinderbox User's avatar
Tinderbox User committed
764
${HOME}/\&.digrc
765
766
.SH "SEE ALSO"
.PP
Automatic Updater's avatar
regen    
Automatic Updater committed
767
768
\fBhost\fR(1),
\fBnamed\fR(8),
Tinderbox User's avatar
Tinderbox User committed
769
770
\fBdnssec-keygen\fR(8),
RFC1035\&.
771
772
.SH "BUGS"
.PP
Tinderbox User's avatar
Tinderbox User committed
773
774
775
776
There are probably too many query options\&.
.SH "AUTHOR"
.PP
\fBInternet Systems Consortium, Inc\&.\fR
Automatic Updater's avatar
regen    
Automatic Updater committed
777
778
.SH "COPYRIGHT"
.br
Tinderbox User's avatar
Tinderbox User committed
779
Copyright \(co 2000-2011, 2013-2016 Internet Systems Consortium, Inc. ("ISC")
Automatic Updater's avatar
regen    
Automatic Updater committed
780
.br