man.dig.html revision d9f0b06dc2bba47e3fe63afdf41c638d3517ceff
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann - Copyright (C) 2004-2014 Internet Systems Consortium, Inc. ("ISC")
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann - Copyright (C) 2000-2003 Internet Software Consortium.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann - Permission to use, copy, modify, and/or distribute this software for any
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann - purpose with or without fee is hereby granted, provided that the above
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann - copyright notice and this permission notice appear in all copies.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann - PERFORMANCE OF THIS SOFTWARE.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<link rel="prev" href="Bv9ARM.ch10.html" title="Manual pages">
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<link rel="next" href="man.host.html" title="host">
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<table width="100%" summary="Navigation header">
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<tr><th colspan="3" align="center">dig</th></tr>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<a accesskey="p" href="Bv9ARM.ch10.html">Prev</a>�</td>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<th width="60%" align="center">Manual pages</th>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<td width="20%" align="right">�<a accesskey="n" href="man.host.html">Next</a>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<a name="man.dig"></a><div class="titlepage"></div>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<div class="cmdsynopsis"><p><code class="command">dig</code> [@server] [<code class="option">-b <em class="replaceable"><code>address</code></em></code>] [<code class="option">-c <em class="replaceable"><code>class</code></em></code>] [<code class="option">-f <em class="replaceable"><code>filename</code></em></code>] [<code class="option">-k <em class="replaceable"><code>filename</code></em></code>] [<code class="option">-m</code>] [<code class="option">-p <em class="replaceable"><code>port#</code></em></code>] [<code class="option">-q <em class="replaceable"><code>name</code></em></code>] [<code class="option">-t <em class="replaceable"><code>type</code></em></code>] [<code class="option">-v</code>] [<code class="option">-x <em class="replaceable"><code>addr</code></em></code>] [<code class="option">-y <em class="replaceable"><code>[<span class="optional">hmac:</span>]name:key</code></em></code>] [<code class="option">-4</code>] [<code class="option">-6</code>] [name] [type] [class] [queryopt...]</p></div>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<div class="cmdsynopsis"><p><code class="command">dig</code> [<code class="option">-h</code>]</p></div>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<div class="cmdsynopsis"><p><code class="command">dig</code> [global-queryopt...] [query...]</p></div>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<p><span><strong class="command">dig</strong></span>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann (domain information groper) is a flexible tool
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann for interrogating DNS name servers. It performs DNS lookups and
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann displays the answers that are returned from the name server(s) that
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann were queried. Most DNS administrators use <span><strong class="command">dig</strong></span> to
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann troubleshoot DNS problems because of its flexibility, ease of use and
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann clarity of output. Other lookup tools tend to have less functionality
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann than <span><strong class="command">dig</strong></span>.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Although <span><strong class="command">dig</strong></span> is normally used with
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann arguments, it also has a batch mode of operation for reading lookup
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann requests from a file. A brief summary of its command-line arguments
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann and options is printed when the <code class="option">-h</code> option is given.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Unlike earlier versions, the BIND 9 implementation of
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <span><strong class="command">dig</strong></span> allows multiple lookups to be issued
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann command line.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Unless it is told to query a specific name server,
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <span><strong class="command">dig</strong></span> will try each of the servers listed in
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <code class="filename">/etc/resolv.conf</code>. If no usable server addresses
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann are found, <span><strong class="command">dig</strong></span> will send the query to the local
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann When no command line arguments or options are given,
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <span><strong class="command">dig</strong></span> will perform an NS query for "." (the root).
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann It is possible to set per-user defaults for <span><strong class="command">dig</strong></span> via
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <code class="filename">${HOME}/.digrc</code>. This file is read and
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann any options in it
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann are applied before the command line arguments.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann The IN and CH class names overlap with the IN and CH top level
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann domain names. Either use the <code class="option">-t</code> and
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <code class="option">-c</code> options to specify the type and class,
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann use the <code class="option">-q</code> the specify the domain name, or
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann use "IN." and "CH." when looking up these top level domains.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<a name="id2613668"></a><h2>SIMPLE USAGE</h2>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann A typical invocation of <span><strong class="command">dig</strong></span> looks like:
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<pre class="programlisting"> dig @server name type </pre>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="constant">server</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann is the name or IP address of the name server to query. This
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann can be an IPv4 address in dotted-decimal notation or an IPv6
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann address in colon-delimited notation. When the supplied
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>server</code></em> argument is a hostname,
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <span><strong class="command">dig</strong></span> resolves that name before querying
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann that name server.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann If no <em class="parameter"><code>server</code></em> argument is
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann provided, <span><strong class="command">dig</strong></span> consults
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <code class="filename">/etc/resolv.conf</code>; if an
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann address is found there, it queries the name server at
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann that address. If either of the <code class="option">-4</code> or
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <code class="option">-6</code> options are in use, then
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann only addresses for the corresponding transport
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann will be tried. If no usable addresses are found,
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <span><strong class="command">dig</strong></span> will send the query to the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann local host. The reply from the name server that
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann responds is displayed.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="constant">name</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann is the name of the resource record that is to be looked up.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="constant">type</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann indicates what type of query is required —
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann ANY, A, MX, SIG, etc.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>type</code></em> can be any valid query
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>type</code></em> argument is supplied,
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <span><strong class="command">dig</strong></span> will perform a lookup for an
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann The <code class="option">-b</code> option sets the source IP address of the query
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann to <em class="parameter"><code>address</code></em>. This must be a valid
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann one of the host's network interfaces or "0.0.0.0" or "::". An optional
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann may be specified by appending "#<port>"
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann The default query class (IN for internet) is overridden by the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <code class="option">-c</code> option. <em class="parameter"><code>class</code></em> is
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann class, such as HS for Hesiod records or CH for Chaosnet records.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann The <code class="option">-f</code> option makes <span><strong class="command">dig </strong></span>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann in batch mode by reading a list of lookup requests to process from the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann file <em class="parameter"><code>filename</code></em>. The file contains a
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann queries, one per line. Each entry in the file should be organized in
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann the same way they would be presented as queries to
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <span><strong class="command">dig</strong></span> using the command-line interface.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann The <code class="option">-m</code> option enables memory usage debugging.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann If a non-standard port number is to be queried, the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <code class="option">-p</code> option is used. <em class="parameter"><code>port#</code></em> is
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann the port number that <span><strong class="command">dig</strong></span> will send its
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann instead of the standard DNS port number 53. This option would be used
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann to test a name server that has been configured to listen for queries
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann on a non-standard port number.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann The <code class="option">-4</code> option forces <span><strong class="command">dig</strong></span>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann use IPv4 query transport. The <code class="option">-6</code> option forces
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <span><strong class="command">dig</strong></span> to only use IPv6 query transport.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann The <code class="option">-t</code> option sets the query type to
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>type</code></em>. It can be any valid query type
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann supported in BIND 9. The default query type is "A", unless the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <code class="option">-x</code> option is supplied to indicate a reverse lookup.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann A zone transfer can be requested by specifying a type of AXFR. When
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann an incremental zone transfer (IXFR) is required,
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>type</code></em> is set to <code class="literal">ixfr=N</code>.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann The incremental zone transfer will contain the changes made to the zone
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann since the serial number in the zone's SOA record was
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann The <code class="option">-q</code> option sets the query name to
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>name</code></em>. This is useful to distinguish the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>name</code></em> from other arguments.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann The <code class="option">-v</code> causes <span><strong class="command">dig</strong></span> to
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann print the version number and exit.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Reverse lookups — mapping addresses to names — are simplified by the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <code class="option">-x</code> option. <em class="parameter"><code>addr</code></em> is
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann address in dotted-decimal notation, or a colon-delimited IPv6 address.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann When this option is used, there is no need to provide the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>name</code></em>, <em class="parameter"><code>class</code></em> and
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>type</code></em> arguments. <span><strong class="command">dig</strong></span>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann automatically performs a lookup for a name like
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <code class="literal">11.12.13.10.in-addr.arpa</code> and sets the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann query type and
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann class to PTR and IN respectively. By default, IPv6 addresses are
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann looked up using nibble format under the IP6.ARPA domain.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann To use the older RFC1886 method using the IP6.INT domain
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann specify the <code class="option">-i</code> option. Bit string labels (RFC2874)
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann are now experimental and are not attempted.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann To sign the DNS queries sent by <span><strong class="command">dig</strong></span> and
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann responses using transaction signatures (TSIG), specify a TSIG key file
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann using the <code class="option">-k</code> option. You can also specify the TSIG
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann key itself on the command line using the <code class="option">-y</code> option;
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>hmac</code></em> is the type of the TSIG, default HMAC-MD5,
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>name</code></em> is the name of the TSIG key and
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>key</code></em> is the actual key. The key is a
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann encoded string, typically generated by
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <span class="citerefentry"><span class="refentrytitle">dnssec-keygen</span>(8)</span>.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Caution should be taken when using the <code class="option">-y</code> option on
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann multi-user systems as the key can be visible in the output from
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <span class="citerefentry"><span class="refentrytitle">ps</span>(1)</span>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann or in the shell's history file. When
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann using TSIG authentication with <span><strong class="command">dig</strong></span>, the name
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann server that is queried needs to know the key and algorithm that is
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann being used. In BIND, this is done by providing appropriate
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <span><strong class="command">key</strong></span> and <span><strong class="command">server</strong></span> statements in
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<a name="id2666441"></a><h2>QUERY OPTIONS</h2>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<p><span><strong class="command">dig</strong></span>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann provides a number of query options which affect
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann the way in which lookups are made and the results displayed. Some of
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann these set or reset flag bits in the query header, some determine which
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann sections of the answer get printed, and others determine the timeout
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann and retry strategies.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Each query option is identified by a keyword preceded by a plus sign
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann (<code class="literal">+</code>). Some keywords set or reset an
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann option. These may be preceded
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann by the string <code class="literal">no</code> to negate the meaning of
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann that keyword. Other
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann keywords assign values to options like the timeout interval. They
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann have the form <code class="option">+keyword=value</code>.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann The query options are:
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]aaflag</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann A synonym for <em class="parameter"><code>+[no]aaonly</code></em>.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]aaonly</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Sets the "aa" flag in the query.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]additional</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Display [do not display] the additional section of a
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann reply. The default is to display it.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]adflag</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Set [do not set] the AD (authentic data) bit in the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann query. This requests the server to return whether
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann all of the answer and authority sections have all
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann been validated as secure according to the security
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann policy of the server. AD=1 indicates that all records
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann have been validated as secure and the answer is not
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann from a OPT-OUT range. AD=0 indicate that some part
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann of the answer was insecure or not validated. This
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann bit is set by default.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]all</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Set or clear all display flags.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]answer</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Display [do not display] the answer section of a
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann reply. The default is to display it.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]authority</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Display [do not display] the authority section of a
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann reply. The default is to display it.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]besteffort</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Attempt to display the contents of messages which are
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann malformed. The default is to not display malformed
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+bufsize=B</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Set the UDP message buffer size advertised using EDNS0
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann to <em class="parameter"><code>B</code></em> bytes. The maximum and
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann minimum sizes of this buffer are 65535 and 0 respectively.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Values outside this range are rounded up or down
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann appropriately. Values other than zero will cause a
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann EDNS query to be sent.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]cdflag</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Set [do not set] the CD (checking disabled) bit in
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann the query. This requests the server to not perform
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann DNSSEC validation of responses.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]cl</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Display [do not display] the CLASS when printing the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]cmd</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Toggles the printing of the initial comment in the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann output identifying the version of <span><strong class="command">dig</strong></span>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann and the query options that have been applied. This
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann comment is printed by default.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]comments</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Toggle the display of comment lines in the output.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann The default is to print comments.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]crypto</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Toggle the display of cryptographic fields in DNSSEC
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann records. The contents of these field are unnecessary
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann to debug most DNSSEC validation failures and removing
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann them makes it easier to see the common failures. The
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann default is to display the fields. When omitted they
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann are replaced by the string "[omitted]" or in the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann DNSKEY case the key id is displayed as the replacement,
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann e.g. "[ key id = value ]".
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]defname</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Deprecated, treated as a synonym for
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>+[no]search</code></em>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]dnssec</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Requests DNSSEC records be sent by setting the DNSSEC
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann OK bit (DO) in the OPT record in the additional section
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann of the query.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+domain=somename</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Set the search list to contain the single domain
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>somename</code></em>, as if specified in
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann a <span><strong class="command">domain</strong></span> directive in
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <code class="filename">/etc/resolv.conf</code>, and enable
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann search list processing as if the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>+search</code></em> option were given.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+dscp=value</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Set the DSCP code point to be used when sending the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann query. Valid DSCP code points are in the range
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann [0..63]. By default no code point is explictly set.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]edns[=#]</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Specify the EDNS version to query with. Valid values
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann are 0 to 255. Setting the EDNS version will cause
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann a EDNS query to be sent. <code class="option">+noedns</code>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann clears the remembered EDNS version. EDNS is set to
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann 0 by default.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]ednsopt[=code[:value]]</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Specify EDNS option with code point <code class="option">code</code>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann and optionally payload of <code class="option">value</code> as a
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann hexadecimal string. <code class="option">+noednsopt</code>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann clears the EDNS options to be sent.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]expire</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Send an EDNS Expire option.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]fail</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Do not try the next server if you receive a SERVFAIL.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann The default is to not try the next server which is
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann the reverse of normal stub resolver behavior.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]identify</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Show [or do not show] the IP address and port number
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann that supplied the answer when the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>+short</code></em> option is enabled. If
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann short form answers are requested, the default is not
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann to show the source address and port number of the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann server that provided the answer.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]ignore</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Ignore truncation in UDP responses instead of retrying
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann with TCP. By default, TCP retries are performed.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]keepopen</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Keep the TCP socket open between queries and reuse
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann it rather than creating a new TCP socket for each
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann lookup. The default is <code class="option">+nokeepopen</code>.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]multiline</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Print records like the SOA records in a verbose
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann multi-line format with human-readable comments. The
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann default is to print each record on a single line, to
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann facilitate machine parsing of the <span><strong class="command">dig</strong></span>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+ndots=D</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Set the number of dots that have to appear in
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>name</code></em> to <em class="parameter"><code>D</code></em>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann for it to be considered absolute. The default value
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann is that defined using the ndots statement in
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <code class="filename">/etc/resolv.conf</code>, or 1 if no
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann ndots statement is present. Names with fewer dots
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann are interpreted as relative names and will be searched
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann for in the domains listed in the <code class="option">search</code>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann or <code class="option">domain</code> directive in
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <code class="filename">/etc/resolv.conf</code>.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]nsid</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Include an EDNS name server ID request when sending
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]nssearch</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann When this option is set, <span><strong class="command">dig</strong></span>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann attempts to find the authoritative name servers for
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann the zone containing the name being looked up and
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann display the SOA record that each name server has for
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]onesoa</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Print only one (starting) SOA record when performing
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann an AXFR. The default is to print both the starting
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann and ending SOA records.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]qr</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Print [do not print] the query as it is sent. By
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann default, the query is not printed.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]question</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Print [do not print] the question section of a query
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann when an answer is returned. The default is to print
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann the question section as a comment.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]recurse</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Toggle the setting of the RD (recursion desired) bit
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann in the query. This bit is set by default, which means
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <span><strong class="command">dig</strong></span> normally sends recursive
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann queries. Recursion is automatically disabled when
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann the <em class="parameter"><code>+nssearch</code></em> or
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>+trace</code></em> query options are used.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+retry=T</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Sets the number of times to retry UDP queries to
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann server to <em class="parameter"><code>T</code></em> instead of the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann default, 2. Unlike <em class="parameter"><code>+tries</code></em>,
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann this does not include the initial query.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]rrcomments</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Toggle the display of per-record comments in the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann output (for example, human-readable key information
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann about DNSKEY records). The default is not to print
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann record comments unless multiline mode is active.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]search</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Use [do not use] the search list defined by the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann searchlist or domain directive in
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <code class="filename">resolv.conf</code> (if any). The search
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann list is not used by default.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]short</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Provide a terse answer. The default is to print the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann answer in a verbose form.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]showsearch</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Perform [do not perform] a search showing intermediate
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]sigchase</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Chase DNSSEC signature chains. Requires dig be
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann compiled with -DDIG_SIGCHASE.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]sit[<span class="optional">=####</span>]</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Send a Source Identity Token EDNS option, with optional
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann value. Replaying a SIT from a previous response will
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann allow the server to identify a previous client. The
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann default is <code class="option">+nosit</code>. Currently using
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann experimental value 65001 for the option code.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+split=W</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Split long hex- or base64-formatted fields in resource
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann records into chunks of <em class="parameter"><code>W</code></em>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann characters (where <em class="parameter"><code>W</code></em> is rounded
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann up to the nearest multiple of 4).
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>+nosplit</code></em> or
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>+split=0</code></em> causes fields not to
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann be split at all. The default is 56 characters, or
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann 44 characters when multiline mode is active.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]stats</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann This query option toggles the printing of statistics:
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann when the query was made, the size of the reply and
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann so on. The default behavior is to print the query
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]subnet=addr/prefix</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Send an EDNS Client Subnet option with the speciifed
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann IP address or network prefix.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]tcp</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Use [do not use] TCP when querying name servers. The
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann default behavior is to use UDP unless an
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <code class="literal">ixfr=N</code> query is requested, in which
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann case the default is TCP. AXFR queries always use
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+time=T</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Sets the timeout for a query to
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <em class="parameter"><code>T</code></em> seconds. The default
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann timeout is 5 seconds.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann An attempt to set <em class="parameter"><code>T</code></em> to less
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann than 1 will result
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann in a query timeout of 1 second being applied.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]topdown</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann When chasing DNSSEC signature chains perform a top-down
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann validation. Requires dig be compiled with -DDIG_SIGCHASE.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]trace</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Toggle tracing of the delegation path from the root
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann name servers for the name being looked up. Tracing
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann is disabled by default. When tracing is enabled,
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <span><strong class="command">dig</strong></span> makes iterative queries to
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann resolve the name being looked up. It will follow
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann referrals from the root servers, showing the answer
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann from each server that was used to resolve the lookup.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <span><strong class="command">+dnssec</strong></span> is also set when +trace
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann is set to better emulate the default queries from a
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+tries=T</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Sets the number of times to try UDP queries to server
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann to <em class="parameter"><code>T</code></em> instead of the default,
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann 3. If <em class="parameter"><code>T</code></em> is less than or equal
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann to zero, the number of tries is silently rounded up
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+trusted-key=####</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Specifies a file containing trusted keys to be used
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann with <code class="option">+sigchase</code>. Each DNSKEY record
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann must be on its own line.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann If not specified, <span><strong class="command">dig</strong></span> will look
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann for <code class="filename">/etc/trusted-key.key</code> then
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann <code class="filename">trusted-key.key</code> in the current
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Requires dig be compiled with -DDIG_SIGCHASE.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]ttlid</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Display [do not display] the TTL when printing the
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]ttlunits</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Display [do not display] the TTL in friendly human-readable
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann time units of "s", "m", "h", "d", and "w", representing
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann seconds, minutes, hours, days and weeks. Implies +ttlid.
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann<dt><span class="term"><code class="option">+[no]vc</code></span></dt>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann Use [do not use] TCP when querying name servers. This
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann alternate syntax to <em class="parameter"><code>+[no]tcp</code></em>
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann is provided for backwards compatibility. The "vc"
6a4fa2d53294f484fa8788a75656eff4ad1fd703Daniel Hausmann stands for "virtual circuit".