dig.html revision 5347c0fcb04eaea19d9f39795646239f487c6207
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<!--
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws - Copyright (C) 2000-2011, 2013-2016 Internet Systems Consortium, Inc. ("ISC")
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws -
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws - This Source Code Form is subject to the terms of the Mozilla Public
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier - License, v. 2.0. If a copy of the MPL was not distributed with this
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier - file, You can obtain one at http://mozilla.org/MPL/2.0/.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws-->
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<html>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<head>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<title>dig</title>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</head>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<a name="man.dig"></a><div class="titlepage"></div>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<div class="refnamediv">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<h2>Name</h2>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>dig &#8212; DNS lookup utility</p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</div>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<div class="refsynopsisdiv">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<h2>Synopsis</h2>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<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>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent<div class="cmdsynopsis"><p><code class="command">dig</code> [<code class="option">-h</code>]</p></div>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier<div class="cmdsynopsis"><p><code class="command">dig</code> [global-queryopt...] [query...]</p></div>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</div>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<div class="refsection">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<a name="id-1.7"></a><h2>DESCRIPTION</h2>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p><span class="command"><strong>dig</strong></span>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws (domain information groper) is a flexible tool
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws for interrogating DNS name servers. It performs DNS lookups and
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws displays the answers that are returned from the name server(s) that
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws were queried. Most DNS administrators use <span class="command"><strong>dig</strong></span> to
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws troubleshoot DNS problems because of its flexibility, ease of use and
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws clarity of output. Other lookup tools tend to have less functionality
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws than <span class="command"><strong>dig</strong></span>.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Although <span class="command"><strong>dig</strong></span> is normally used with
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws command-line
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws arguments, it also has a batch mode of operation for reading lookup
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws requests from a file. A brief summary of its command-line arguments
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws and options is printed when the <code class="option">-h</code> option is given.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Unlike earlier versions, the BIND 9 implementation of
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <span class="command"><strong>dig</strong></span> allows multiple lookups to be issued
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws from the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws command line.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Unless it is told to query a specific name server,
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <span class="command"><strong>dig</strong></span> will try each of the servers listed in
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="filename">/etc/resolv.conf</code>. If no usable server addresses
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws are found, <span class="command"><strong>dig</strong></span> will send the query to the local
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws host.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws When no command line arguments or options are given,
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <span class="command"><strong>dig</strong></span> will perform an NS query for "." (the root).
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws It is possible to set per-user defaults for <span class="command"><strong>dig</strong></span> via
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="filename">${HOME}/.digrc</code>. This file is read and
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws any options in it
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws are applied before the command line arguments.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws The IN and CH class names overlap with the IN and CH top level
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws domain names. Either use the <code class="option">-t</code> and
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="option">-c</code> options to specify the type and class,
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws use the <code class="option">-q</code> the specify the domain name, or
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws use "IN." and "CH." when looking up these top level domains.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</div>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<div class="refsection">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<a name="id-1.8"></a><h2>SIMPLE USAGE</h2>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws A typical invocation of <span class="command"><strong>dig</strong></span> looks like:
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<pre class="programlisting"> dig @server name type </pre>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws where:
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<div class="variablelist"><dl class="variablelist">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="constant">server</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws is the name or IP address of the name server to query. This
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws can be an IPv4 address in dotted-decimal notation or an IPv6
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws address in colon-delimited notation. When the supplied
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <em class="parameter"><code>server</code></em> argument is a hostname,
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <span class="command"><strong>dig</strong></span> resolves that name before querying
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws that name server.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws If no <em class="parameter"><code>server</code></em> argument is
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws provided, <span class="command"><strong>dig</strong></span> consults
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="filename">/etc/resolv.conf</code>; if an
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws address is found there, it queries the name server at
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws that address. If either of the <code class="option">-4</code> or
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="option">-6</code> options are in use, then
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws only addresses for the corresponding transport
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws will be tried. If no usable addresses are found,
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <span class="command"><strong>dig</strong></span> will send the query to the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws local host. The reply from the name server that
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws responds is displayed.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="constant">name</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws is the name of the resource record that is to be looked up.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="constant">type</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws indicates what type of query is required &#8212;
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws ANY, A, MX, SIG, etc.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <em class="parameter"><code>type</code></em> can be any valid query
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws type. If no
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <em class="parameter"><code>type</code></em> argument is supplied,
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <span class="command"><strong>dig</strong></span> will perform a lookup for an
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws A record.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</dl></div>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</div>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<div class="refsection">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<a name="id-1.9"></a><h2>OPTIONS</h2>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<div class="variablelist"><dl class="variablelist">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term">-4</span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Use IPv4 only.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term">-6</span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Use IPv6 only.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term">-b <em class="replaceable"><code>address[<span class="optional">#port</span>]</code></em></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Set the source IP address of the query.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws The <em class="parameter"><code>address</code></em> must be a valid address on
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws one of the host's network interfaces, or "0.0.0.0" or "::". An
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws optional port may be specified by appending "#&lt;port&gt;"
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier </p></dd>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier<dd><p>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier Set the query class. The
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier default <em class="parameter"><code>class</code></em> is IN; other classes
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier are HS for Hesiod records or CH for Chaosnet records.
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier </p></dd>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier<dt><span class="term">-f <em class="replaceable"><code>file</code></em></span></dt>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier<dd><p>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier Batch mode: <span class="command"><strong>dig</strong></span> reads a list of lookup
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier requests to process from the
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier given <em class="parameter"><code>file</code></em>. Each line in the file
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier should be organized in the same way they would be
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier presented as queries to
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier <span class="command"><strong>dig</strong></span> using the command-line interface.
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier </p></dd>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier<dt><span class="term">-i</span></dt>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier<dd><p>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier Do reverse IPv6 lookups using the obsolete RFC1886 IP6.INT
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier domain, which is no longer in use. Obsolete bit string
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier label queries (RFC2874) are not attempted.
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier </p></dd>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier<dt><span class="term">-k <em class="replaceable"><code>keyfile</code></em></span></dt>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier<dd><p>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier Sign queries using TSIG using a key read from the given file.
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier Key files can be generated using
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier <span class="citerefentry"><span class="refentrytitle">tsig-keygen</span>(8)</span>.
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier When using TSIG authentication with <span class="command"><strong>dig</strong></span>,
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier the name server that is queried needs to know the key and
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier algorithm that is being used. In BIND, this is done by
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier providing appropriate <span class="command"><strong>key</strong></span>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier and <span class="command"><strong>server</strong></span> statements in
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier <code class="filename">named.conf</code>.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term">-m</span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Enable memory usage debugging.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term">-p <em class="replaceable"><code>port</code></em></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Send the query to a non-standard port on the server,
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws instead of the default port 53. This option would be used
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws to test a name server that has been configured to listen
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws for queries on a non-standard port number.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term">-q <em class="replaceable"><code>name</code></em></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws The domain name to query. This is useful to distinguish
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws the <em class="parameter"><code>name</code></em> from other arguments.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term">-t <em class="replaceable"><code>type</code></em></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws The resource record type to query. It can be any valid query type
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws which is
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws supported in BIND 9. The default query type is "A", unless the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="option">-x</code> option is supplied to indicate a reverse lookup.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws A zone transfer can be requested by specifying a type of AXFR. When
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws an incremental zone transfer (IXFR) is required, set the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <em class="parameter"><code>type</code></em> to <code class="literal">ixfr=N</code>.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws The incremental zone transfer will contain the changes
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws made to the zone since the serial number in the zone's SOA
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws record was
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <em class="parameter"><code>N</code></em>.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term">-v</span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Print the version number and exit.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term">-x <em class="replaceable"><code>addr</code></em></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Simplified reverse lookups, for mapping addresses to
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws names. The <em class="parameter"><code>addr</code></em> is an IPv4 address
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws in dotted-decimal notation, or a colon-delimited IPv6
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws address. When the <code class="option">-x</code> is used, there is no
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws need to provide
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws the <em class="parameter"><code>name</code></em>, <em class="parameter"><code>class</code></em>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws and <em class="parameter"><code>type</code></em>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws arguments. <span class="command"><strong>dig</strong></span> automatically performs a
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws lookup for a name like
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="literal">94.2.0.192.in-addr.arpa</code> and sets the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws query type and class to PTR and IN respectively. IPv6
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws addresses are looked up using nibble format under the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws IP6.ARPA domain (but see also the <code class="option">-i</code>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws option).
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term">-y <em class="replaceable"><code>[<span class="optional">hmac:</span>]keyname:secret</code></em></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Sign queries using TSIG with the given authentication key.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <em class="parameter"><code>keyname</code></em> is the name of the key, and
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <em class="parameter"><code>secret</code></em> is the base64 encoded shared secret.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <em class="parameter"><code>hmac</code></em> is the name of the key algorithm;
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws valid choices are <code class="literal">hmac-md5</code>,
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="literal">hmac-sha1</code>, <code class="literal">hmac-sha224</code>,
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="literal">hmac-sha256</code>, <code class="literal">hmac-sha384</code>, or
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="literal">hmac-sha512</code>. If <em class="parameter"><code>hmac</code></em>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws is not specified, the default is <code class="literal">hmac-md5</code>.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws NOTE: You should use the <code class="option">-k</code> option and
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws avoid the <code class="option">-y</code> option, because
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws with <code class="option">-y</code> the shared secret is supplied as
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws a command line argument in clear text. This may be visible
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws in the output from
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <span class="citerefentry"><span class="refentrytitle">ps</span>(1)</span>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws or in a history file maintained by the user's shell.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</dl></div>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</div>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<div class="refsection">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<a name="id-1.10"></a><h2>QUERY OPTIONS</h2>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p><span class="command"><strong>dig</strong></span>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws provides a number of query options which affect
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws the way in which lookups are made and the results displayed. Some of
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws these set or reset flag bits in the query header, some determine which
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws sections of the answer get printed, and others determine the timeout
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws and retry strategies.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Each query option is identified by a keyword preceded by a plus sign
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws (<code class="literal">+</code>). Some keywords set or reset an
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws option. These may be preceded
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws by the string <code class="literal">no</code> to negate the meaning of
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws that keyword. Other
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws keywords assign values to options like the timeout interval. They
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws have the form <code class="option">+keyword=value</code>.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Keywords may be abbreviated, provided the abbreviation is
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws unambiguous; for example, <code class="literal">+cd</code> is equivalent
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws to <code class="literal">+cdflag</code>.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws The query options are:
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<div class="variablelist"><dl class="variablelist">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]aaflag</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws A synonym for <em class="parameter"><code>+[no]aaonly</code></em>.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]aaonly</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Sets the "aa" flag in the query.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]additional</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Display [do not display] the additional section of a
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws reply. The default is to display it.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]adflag</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Set [do not set] the AD (authentic data) bit in the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws query. This requests the server to return whether
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws all of the answer and authority sections have all
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws been validated as secure according to the security
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws policy of the server. AD=1 indicates that all records
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws have been validated as secure and the answer is not
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws from a OPT-OUT range. AD=0 indicate that some part
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier of the answer was insecure or not validated. This
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws bit is set by default.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]all</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Set or clear all display flags.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]answer</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Display [do not display] the answer section of a
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws reply. The default is to display it.
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier </p></dd>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier<dt><span class="term"><code class="option">+[no]authority</code></span></dt>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier<dd><p>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier Display [do not display] the authority section of a
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier reply. The default is to display it.
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier </p></dd>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier<dt><span class="term"><code class="option">+[no]badcookie</code></span></dt>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier<dd><p>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier Retry lookup with the new server cookie if a
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier BADCOOKIE response is received.
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier </p></dd>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier<dt><span class="term"><code class="option">+[no]besteffort</code></span></dt>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier<dd><p>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier Attempt to display the contents of messages which are
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier malformed. The default is to not display malformed
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier answers.
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier </p></dd>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier<dt><span class="term"><code class="option">+bufsize=B</code></span></dt>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Set the UDP message buffer size advertised using EDNS0
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws to <em class="parameter"><code>B</code></em> bytes. The maximum and
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws minimum sizes of this buffer are 65535 and 0 respectively.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Values outside this range are rounded up or down
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws appropriately. Values other than zero will cause a
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws EDNS query to be sent.
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]cdflag</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Set [do not set] the CD (checking disabled) bit in
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws the query. This requests the server to not perform
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent DNSSEC validation of responses.
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]class</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Display [do not display] the CLASS when printing the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws record.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]cmd</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Toggles the printing of the initial comment in the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws output identifying the version of <span class="command"><strong>dig</strong></span>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws and the query options that have been applied. This
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws comment is printed by default.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]comments</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Toggle the display of comment lines in the output.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws The default is to print comments.
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier </p></dd>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier<dt><span class="term"><code class="option">+[no]cookie[<span class="optional">=####</span>]</code></span></dt>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier<dd>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier<p>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier Send a COOKIE EDNS option, with optional
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier value. Replaying a COOKIE from a previous response will
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier allow the server to identify a previous client. The
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier default is <code class="option">+cookie</code>.
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier </p>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier<p>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier <span class="command"><strong>+cookie</strong></span> is also set when +trace
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier is set to better emulate the default queries from a
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier nameserver.
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier </p>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier</dd>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier<dt><span class="term"><code class="option">+[no]crypto</code></span></dt>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier<dd><p>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier Toggle the display of cryptographic fields in DNSSEC
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier records. The contents of these field are unnecessary
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier to debug most DNSSEC validation failures and removing
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier them makes it easier to see the common failures. The
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier default is to display the fields. When omitted they
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier are replaced by the string "[omitted]" or in the
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier DNSKEY case the key id is displayed as the replacement,
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier e.g. "[ key id = value ]".
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier </p></dd>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier<dt><span class="term"><code class="option">+[no]defname</code></span></dt>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier<dd><p>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier Deprecated, treated as a synonym for
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier <em class="parameter"><code>+[no]search</code></em>
074bb90d80fdbeb2d04a8450a55ecbc96de28785Tom Pothier </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]dnssec</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Requests DNSSEC records be sent by setting the DNSSEC
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws OK bit (DO) in the OPT record in the additional section
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws of the query.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+domain=somename</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Set the search list to contain the single domain
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <em class="parameter"><code>somename</code></em>, as if specified in
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws a <span class="command"><strong>domain</strong></span> directive in
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="filename">/etc/resolv.conf</code>, and enable
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws search list processing as if the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <em class="parameter"><code>+search</code></em> option were given.
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent </p></dd>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent<dt><span class="term"><code class="option">+dscp=value</code></span></dt>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent<dd><p>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent Set the DSCP code point to be used when sending the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws query. Valid DSCP code points are in the range
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws [0..63]. By default no code point is explicitly set.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]edns[=#]</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Specify the EDNS version to query with. Valid values
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws are 0 to 255. Setting the EDNS version will cause
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws a EDNS query to be sent. <code class="option">+noedns</code>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws clears the remembered EDNS version. EDNS is set to
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws 0 by default.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]ednsflags[=#]</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Set the must-be-zero EDNS flags bits (Z bits) to the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws specified value. Decimal, hex and octal encodings are
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws accepted. Setting a named flag (e.g. DO) will silently be
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws ignored. By default, no Z bits are set.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]ednsnegotiation</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Enable / disable EDNS version negotiation. By default
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws EDNS version negotiation is enabled.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]ednsopt[=code[:value]]</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Specify EDNS option with code point <code class="option">code</code>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws and optionally payload of <code class="option">value</code> as a
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws hexadecimal string. <code class="option">+noednsopt</code>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws clears the EDNS options to be sent.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]expire</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Send an EDNS Expire option.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent<dt><span class="term"><code class="option">+[no]fail</code></span></dt>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent<dd><p>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent Do not try the next server if you receive a SERVFAIL.
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent The default is to not try the next server which is
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent the reverse of normal stub resolver behavior.
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent </p></dd>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent<dt><span class="term"><code class="option">+[no]header-only</code></span></dt>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent<dd><p>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent Send a query with a DNS header without a question section.
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent The default is to add a question section. The query type
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent and query name are ignored when this is set.
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent </p></dd>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent<dt><span class="term"><code class="option">+[no]identify</code></span></dt>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent<dd><p>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent Show [or do not show] the IP address and port number
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent that supplied the answer when the
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent <em class="parameter"><code>+short</code></em> option is enabled. If
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent short form answers are requested, the default is not
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent to show the source address and port number of the
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent server that provided the answer.
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent </p></dd>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent<dt><span class="term"><code class="option">+[no]ignore</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Ignore truncation in UDP responses instead of retrying
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws with TCP. By default, TCP retries are performed.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]keepopen</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Keep the TCP socket open between queries and reuse
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws it rather than creating a new TCP socket for each
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws lookup. The default is <code class="option">+nokeepopen</code>.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]mapped</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Allow mapped IPv4 over IPv6 addresses to be used. The
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws default is <code class="option">+mapped</code>.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent<dt><span class="term"><code class="option">+[no]multiline</code></span></dt>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent<dd><p>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent Print records like the SOA records in a verbose
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws multi-line format with human-readable comments. The
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws default is to print each record on a single line, to
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws facilitate machine parsing of the <span class="command"><strong>dig</strong></span>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws output.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+ndots=D</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Set the number of dots that have to appear in
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <em class="parameter"><code>name</code></em> to <em class="parameter"><code>D</code></em>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws for it to be considered absolute. The default value
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws is that defined using the ndots statement in
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="filename">/etc/resolv.conf</code>, or 1 if no
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws ndots statement is present. Names with fewer dots
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws are interpreted as relative names and will be searched
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws for in the domains listed in the <code class="option">search</code>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws or <code class="option">domain</code> directive in
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="filename">/etc/resolv.conf</code> if
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="option">+search</code> is set.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]nsid</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Include an EDNS name server ID request when sending
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws a query.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]nssearch</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws When this option is set, <span class="command"><strong>dig</strong></span>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws attempts to find the authoritative name servers for
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws the zone containing the name being looked up and
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws display the SOA record that each name server has for
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws the zone.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]onesoa</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Print only one (starting) SOA record when performing
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws an AXFR. The default is to print both the starting
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws and ending SOA records.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]opcode=value</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Set [restore] the DNS message opcode to the specified
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws value. The default value is QUERY (0).
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]qr</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Print [do not print] the query as it is sent. By
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws default, the query is not printed.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]question</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Print [do not print] the question section of a query
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws when an answer is returned. The default is to print
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws the question section as a comment.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]rdflag</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws A synonym for <em class="parameter"><code>+[no]recurse</code></em>.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]recurse</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Toggle the setting of the RD (recursion desired) bit
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws in the query. This bit is set by default, which means
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <span class="command"><strong>dig</strong></span> normally sends recursive
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws queries. Recursion is automatically disabled when
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws the <em class="parameter"><code>+nssearch</code></em> or
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <em class="parameter"><code>+trace</code></em> query options are used.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+retry=T</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Sets the number of times to retry UDP queries to
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws server to <em class="parameter"><code>T</code></em> instead of the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws default, 2. Unlike <em class="parameter"><code>+tries</code></em>,
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier this does not include the initial query.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]rrcomments</code></span></dt>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Toggle the display of per-record comments in the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws output (for example, human-readable key information
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws about DNSKEY records). The default is not to print
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws record comments unless multiline mode is active.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]search</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Use [do not use] the search list defined by the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws searchlist or domain directive in
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="filename">resolv.conf</code> (if any). The search
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws list is not used by default.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws 'ndots' from <code class="filename">resolv.conf</code> (default 1)
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws which may be overridden by <em class="parameter"><code>+ndots</code></em>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws determines if the name will be treated as relative
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws or not and hence whether a search is eventually
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws performed or not.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]short</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier Provide a terse answer. The default is to print the
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier answer in a verbose form.
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier </p></dd>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier<dt><span class="term"><code class="option">+[no]showsearch</code></span></dt>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier<dd><p>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier Perform [do not perform] a search showing intermediate
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier results.
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier </p></dd>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier<dt><span class="term"><code class="option">+[no]sigchase</code></span></dt>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier<dd><p>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier Chase DNSSEC signature chains. Requires dig be
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier compiled with -DDIG_SIGCHASE.
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier </p></dd>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier<dt><span class="term"><code class="option">+split=W</code></span></dt>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier<dd><p>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier Split long hex- or base64-formatted fields in resource
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier records into chunks of <em class="parameter"><code>W</code></em>
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier characters (where <em class="parameter"><code>W</code></em> is rounded
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier up to the nearest multiple of 4).
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier <em class="parameter"><code>+nosplit</code></em> or
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier <em class="parameter"><code>+split=0</code></em> causes fields not to
03f9f63d24f0494b7d47b927090ad9045e396402Tom Pothier be split at all. The default is 56 characters, or
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws 44 characters when multiline mode is active.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]stats</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws This query option toggles the printing of statistics:
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws when the query was made, the size of the reply and
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws so on. The default behavior is to print the query
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws statistics.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]subnet=addr[/prefix-length]</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Send (don't send) an EDNS Client Subnet option with the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws specified IP address or network prefix.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <span class="command"><strong>dig +subnet=0.0.0.0/0</strong></span>, or simply
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <span class="command"><strong>dig +subnet=0</strong></span> for short, sends an EDNS
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws client-subnet option with an empty address and a source
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws prefix-length of zero, which signals a resolver that
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws the client's address information must
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <span class="emphasis"><em>not</em></span> be used when resolving
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws this query.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]tcp</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Use [do not use] TCP when querying name servers. The
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws default behavior is to use UDP unless an
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="literal">ixfr=N</code> query is requested, in which
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws case the default is TCP. AXFR queries always use
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws TCP.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+timeout=T</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Sets the timeout for a query to
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <em class="parameter"><code>T</code></em> seconds. The default
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws timeout is 5 seconds.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws An attempt to set <em class="parameter"><code>T</code></em> to less
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws than 1 will result
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws in a query timeout of 1 second being applied.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]topdown</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws When chasing DNSSEC signature chains perform a top-down
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws validation. Requires dig be compiled with -DDIG_SIGCHASE.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]trace</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Toggle tracing of the delegation path from the root
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws name servers for the name being looked up. Tracing
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws is disabled by default. When tracing is enabled,
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <span class="command"><strong>dig</strong></span> makes iterative queries to
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws resolve the name being looked up. It will follow
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws referrals from the root servers, showing the answer
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws from each server that was used to resolve the lookup.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws If @server is also specified, it affects only the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws initial query for the root zone name servers.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <span class="command"><strong>+dnssec</strong></span> is also set when +trace
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws is set to better emulate the default queries from a
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws nameserver.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+tries=T</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Sets the number of times to try UDP queries to server
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws to <em class="parameter"><code>T</code></em> instead of the default,
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws 3. If <em class="parameter"><code>T</code></em> is less than or equal
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws to zero, the number of tries is silently rounded up
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws to 1.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+trusted-key=####</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Specifies a file containing trusted keys to be used
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws with <code class="option">+sigchase</code>. Each DNSKEY record
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws must be on its own line.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws If not specified, <span class="command"><strong>dig</strong></span> will look
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws for <code class="filename">/etc/trusted-key.key</code> then
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="filename">trusted-key.key</code> in the current
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws directory.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Requires dig be compiled with -DDIG_SIGCHASE.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]ttlid</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Display [do not display] the TTL when printing the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws record.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]ttlunits</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Display [do not display] the TTL in friendly human-readable
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws time units of "s", "m", "h", "d", and "w", representing
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws seconds, minutes, hours, days and weeks. Implies +ttlid.
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]unknownformat</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Print all RDATA in unknown RR type presentation format
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent (RFC 3597). The default is to print RDATA for known types
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws in the type's presentation format.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]vc</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Use [do not use] TCP when querying name servers. This
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws alternate syntax to <em class="parameter"><code>+[no]tcp</code></em>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws is provided for backwards compatibility. The "vc"
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws stands for "virtual circuit".
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dt><span class="term"><code class="option">+[no]zflag</code></span></dt>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<dd><p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws Set [do not set] the last unassigned DNS header flag in a
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws DNS query. This flag is off by default.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p></dd>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</dl></div>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</div>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<div class="refsection">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<a name="id-1.11"></a><h2>MULTIPLE QUERIES</h2>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws The BIND 9 implementation of <span class="command"><strong>dig </strong></span>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws supports
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws specifying multiple queries on the command line (in addition to
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws supporting the <code class="option">-f</code> batch file option). Each of those
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws queries can be supplied with its own set of flags, options and query
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws options.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws In this case, each <em class="parameter"><code>query</code></em> argument
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws represent an
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws individual query in the command-line syntax described above. Each
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws consists of any of the standard options and flags, the name to be
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws looked up, an optional query type and class and any query options that
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws should be applied to that query.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws A global set of query options, which should be applied to all queries,
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws can also be supplied. These global query options must precede the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws first tuple of name, class, type, options, flags, and query options
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent supplied on the command line. Any global query options (except
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws the <code class="option">+[no]cmd</code> option) can be
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws overridden by a query-specific set of query options. For example:
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<pre class="programlisting">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mwsdig +qr www.isc.org any -x 127.0.0.1 isc.org ns +noqr
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</pre>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws shows how <span class="command"><strong>dig</strong></span> could be used from the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws command line
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws to make three lookups: an ANY query for <code class="literal">www.isc.org</code>, a
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws reverse lookup of 127.0.0.1 and a query for the NS records of
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent <code class="literal">isc.org</code>.
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws A global query option of <em class="parameter"><code>+qr</code></em> is
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws applied, so
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws that <span class="command"><strong>dig</strong></span> shows the initial query it made
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws for each
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws lookup. The final query has a local query option of
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <em class="parameter"><code>+noqr</code></em> which means that <span class="command"><strong>dig</strong></span>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws will not print the initial query when it looks up the NS records for
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <code class="literal">isc.org</code>.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</div>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<div class="refsection">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<a name="id-1.12"></a><h2>IDN SUPPORT</h2>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws If <span class="command"><strong>dig</strong></span> has been built with IDN (internationalized
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws domain name) support, it can accept and display non-ASCII domain names.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <span class="command"><strong>dig</strong></span> appropriately converts character encoding of
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws domain name before sending a request to DNS server or displaying a
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws reply from the server.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws If you'd like to turn off the IDN support for some reason, defines
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws the <code class="envar">IDN_DISABLE</code> environment variable.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws The IDN support is disabled if the variable is set when
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws <span class="command"><strong>dig</strong></span> runs.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</div>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<div class="refsection">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<a name="id-1.13"></a><h2>FILES</h2>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p><code class="filename">/etc/resolv.conf</code>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p><code class="filename">${HOME}/.digrc</code>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</div>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<div class="refsection">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<a name="id-1.14"></a><h2>SEE ALSO</h2>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent<p><span class="citerefentry"><span class="refentrytitle">host</span>(1)</span>,
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent <span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent <span class="citerefentry"><span class="refentrytitle">dnssec-keygen</span>(8)</span>,
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent <em class="citetitle">RFC1035</em>.
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent </p>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent</div>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent<div class="refsection">
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<a name="id-1.15"></a><h2>BUGS</h2>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws<p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws There are probably too many query options.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws </p>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</div>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</div></body>
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws</html>
4e901881a1e657e1cbf12d7ef9b476ec373e7939Dale Ghent