man.dig.html revision 46472a450e043434d78fa18edc73bca8c47f3981
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe - Copyright (C) 2004-2015 Internet Systems Consortium, Inc. ("ISC")
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe - Copyright (C) 2000-2003 Internet Software Consortium.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe - Permission to use, copy, modify, and/or distribute this software for any
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe - purpose with or without fee is hereby granted, provided that the above
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe - copyright notice and this permission notice appear in all copies.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov - PERFORMANCE OF THIS SOFTWARE.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<link rel="home" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<link rel="up" href="Bv9ARM.ch13.html" title="Manual pages">
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<link rel="prev" href="Bv9ARM.ch13.html" title="Manual pages">
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<link rel="next" href="man.host.html" title="host">
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<table width="100%" summary="Navigation header">
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<tr><th colspan="3" align="center">dig</th></tr>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<a accesskey="p" href="Bv9ARM.ch13.html">Prev</a>�</td>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<th width="60%" align="center">Manual pages</th>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<td width="20%" align="right">�<a accesskey="n" href="man.host.html">Next</a>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<a name="man.dig"></a><div class="titlepage"></div>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<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>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<div class="cmdsynopsis"><p><code class="command">dig</code> [<code class="option">-h</code>]</p></div>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<div class="cmdsynopsis"><p><code class="command">dig</code> [global-queryopt...] [query...]</p></div>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<p><span class="command"><strong>dig</strong></span>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe (domain information groper) is a flexible tool
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe for interrogating DNS name servers. It performs DNS lookups and
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe displays the answers that are returned from the name server(s) that
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe were queried. Most DNS administrators use <span class="command"><strong>dig</strong></span> to
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe troubleshoot DNS problems because of its flexibility, ease of use and
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe clarity of output. Other lookup tools tend to have less functionality
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe than <span class="command"><strong>dig</strong></span>.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe Although <span class="command"><strong>dig</strong></span> is normally used with
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe command-line
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe arguments, it also has a batch mode of operation for reading lookup
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe requests from a file. A brief summary of its command-line arguments
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe and options is printed when the <code class="option">-h</code> option is given.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe Unlike earlier versions, the BIND 9 implementation of
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe <span class="command"><strong>dig</strong></span> allows multiple lookups to be issued
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe command line.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe Unless it is told to query a specific name server,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe <span class="command"><strong>dig</strong></span> will try each of the servers listed in
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe <code class="filename">/etc/resolv.conf</code>. If no usable server addresses
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe are found, <span class="command"><strong>dig</strong></span> will send the query to the local
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe When no command line arguments or options are given,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe <span class="command"><strong>dig</strong></span> will perform an NS query for "." (the root).
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe It is possible to set per-user defaults for <span class="command"><strong>dig</strong></span> via
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe <code class="filename">${HOME}/.digrc</code>. This file is read and
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe any options in it
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe are applied before the command line arguments.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe The IN and CH class names overlap with the IN and CH top level
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe domain names. Either use the <code class="option">-t</code> and
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe <code class="option">-c</code> options to specify the type and class,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe use the <code class="option">-q</code> the specify the domain name, or
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe use "IN." and "CH." when looking up these top level domains.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe A typical invocation of <span class="command"><strong>dig</strong></span> looks like:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<pre class="programlisting"> dig @server name type </pre>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<div class="variablelist"><dl class="variablelist">
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<dt><span class="term"><code class="constant">server</code></span></dt>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe is the name or IP address of the name server to query. This
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe can be an IPv4 address in dotted-decimal notation or an IPv6
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe address in colon-delimited notation. When the supplied
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe <em class="parameter"><code>server</code></em> argument is a hostname,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe <span class="command"><strong>dig</strong></span> resolves that name before querying
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe that name server.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe If no <em class="parameter"><code>server</code></em> argument is
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe provided, <span class="command"><strong>dig</strong></span> consults
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe <code class="filename">/etc/resolv.conf</code>; if an
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe address is found there, it queries the name server at
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe that address. If either of the <code class="option">-4</code> or
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe <code class="option">-6</code> options are in use, then
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe only addresses for the corresponding transport
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe will be tried. If no usable addresses are found,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe <span class="command"><strong>dig</strong></span> will send the query to the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe local host. The reply from the name server that
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe responds is displayed.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<dt><span class="term"><code class="constant">name</code></span></dt>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe is the name of the resource record that is to be looked up.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<dt><span class="term"><code class="constant">type</code></span></dt>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe indicates what type of query is required —
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe ANY, A, MX, SIG, etc.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe <em class="parameter"><code>type</code></em> can be any valid query
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe <em class="parameter"><code>type</code></em> argument is supplied,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe <span class="command"><strong>dig</strong></span> will perform a lookup for an
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<div class="variablelist"><dl class="variablelist">
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe Use IPv4 only.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe Use IPv6 only.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<dt><span class="term">-b <em class="replaceable"><code>address[<span class="optional">#port</span>]</code></em></span></dt>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe Set the source IP address of the query.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe The <em class="parameter"><code>address</code></em> must be a valid address on
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe one of the host's network interfaces, or "0.0.0.0" or "::". An
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe optional port may be specified by appending "#<port>"
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe Set the query class. The
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe default <em class="parameter"><code>class</code></em> is IN; other classes
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe are HS for Hesiod records or CH for Chaosnet records.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<dt><span class="term">-f <em class="replaceable"><code>file</code></em></span></dt>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe Batch mode: <span class="command"><strong>dig</strong></span> reads a list of lookup
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe requests to process from the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe given <em class="parameter"><code>file</code></em>. Each line in the file
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe should be organized in the same way they would be
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe presented as queries to
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe <span class="command"><strong>dig</strong></span> using the command-line interface.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe Do reverse IPv6 lookups using the obsolete RFC1886 IP6.INT
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe domain, which is no longer in use. Obsolete bit string
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe label queries (RFC2874) are not attempted.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<dt><span class="term">-k <em class="replaceable"><code>keyfile</code></em></span></dt>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe Sign queries using TSIG using a key read from the given file.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe Key files can be generated using
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe <span class="citerefentry"><span class="refentrytitle">tsig-keygen</span>(8)</span>.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe When using TSIG authentication with <span class="command"><strong>dig</strong></span>,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe the name server that is queried needs to know the key and
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe algorithm that is being used. In BIND, this is done by
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe providing appropriate <span class="command"><strong>key</strong></span>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe and <span class="command"><strong>server</strong></span> statements in
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe Enable memory usage debugging.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe<dt><span class="term">-p <em class="replaceable"><code>port</code></em></span></dt>
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe Send the query to a non-standard port on the server,
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov instead of the default port 53. This option would be used
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov to test a name server that has been configured to listen
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov for queries on a non-standard port number.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov<dt><span class="term">-q <em class="replaceable"><code>name</code></em></span></dt>
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov The domain name to query. This is useful to distinguish
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov the <em class="parameter"><code>name</code></em> from other arguments.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov<dt><span class="term">-t <em class="replaceable"><code>type</code></em></span></dt>
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov The resource record type to query. It can be any valid query type
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov supported in BIND 9. The default query type is "A", unless the
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov <code class="option">-x</code> option is supplied to indicate a reverse lookup.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov A zone transfer can be requested by specifying a type of AXFR. When
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov an incremental zone transfer (IXFR) is required, set the
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov <em class="parameter"><code>type</code></em> to <code class="literal">ixfr=N</code>.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov The incremental zone transfer will contain the changes
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov made to the zone since the serial number in the zone's SOA
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov Print the version number and exit.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov<dt><span class="term">-x <em class="replaceable"><code>addr</code></em></span></dt>
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov Simplified reverse lookups, for mapping addresses to
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov names. The <em class="parameter"><code>addr</code></em> is an IPv4 address
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov in dotted-decimal notation, or a colon-delimited IPv6
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov address. When the <code class="option">-x</code> is used, there is no
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov need to provide
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov the <em class="parameter"><code>name</code></em>, <em class="parameter"><code>class</code></em>
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov and <em class="parameter"><code>type</code></em>
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov arguments. <span class="command"><strong>dig</strong></span> automatically performs a
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov lookup for a name like
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov <code class="literal">94.2.0.192.in-addr.arpa</code> and sets the
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov query type and class to PTR and IN respectively. IPv6
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov addresses are looked up using nibble format under the
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov IP6.ARPA domain (but see also the <code class="option">-i</code>
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov<dt><span class="term">-y <em class="replaceable"><code>[<span class="optional">hmac:</span>]keyname:secret</code></em></span></dt>
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov Sign queries using TSIG with the given authentication key.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov <em class="parameter"><code>keyname</code></em> is the name of the key, and
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov <em class="parameter"><code>secret</code></em> is the base64 encoded shared secret.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov <em class="parameter"><code>hmac</code></em> is the name of the key algorithm;
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov valid choices are <code class="literal">hmac-md5</code>,
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov <code class="literal">hmac-sha1</code>, <code class="literal">hmac-sha224</code>,
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov <code class="literal">hmac-sha256</code>, <code class="literal">hmac-sha384</code>, or
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov <code class="literal">hmac-sha512</code>. If <em class="parameter"><code>hmac</code></em>
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov is not specified, the default is <code class="literal">hmac-md5</code>.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov NOTE: You should use the <code class="option">-k</code> option and
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov avoid the <code class="option">-y</code> option, because
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov with <code class="option">-y</code> the shared secret is supplied as
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov a command line argument in clear text. This may be visible
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov in the output from
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov <span class="citerefentry"><span class="refentrytitle">ps</span>(1)</span>
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov or in a history file maintained by the user's shell.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov<a name="id-1.14.2.10"></a><h2>QUERY OPTIONS</h2>
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov<p><span class="command"><strong>dig</strong></span>
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov provides a number of query options which affect
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov the way in which lookups are made and the results displayed. Some of
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov these set or reset flag bits in the query header, some determine which
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov sections of the answer get printed, and others determine the timeout
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov and retry strategies.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov Each query option is identified by a keyword preceded by a plus sign
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov (<code class="literal">+</code>). Some keywords set or reset an
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov option. These may be preceded
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov by the string <code class="literal">no</code> to negate the meaning of
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov that keyword. Other
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov keywords assign values to options like the timeout interval. They
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov have the form <code class="option">+keyword=value</code>.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov Keywords may be abbreviated, provided the abbreviation is
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov unambiguous; for example, <code class="literal">+cd</code> is equivalent
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov The query options are:
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov<div class="variablelist"><dl class="variablelist">
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov<dt><span class="term"><code class="option">+[no]aaflag</code></span></dt>
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov A synonym for <em class="parameter"><code>+[no]aaonly</code></em>.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov<dt><span class="term"><code class="option">+[no]aaonly</code></span></dt>
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov Sets the "aa" flag in the query.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov<dt><span class="term"><code class="option">+[no]additional</code></span></dt>
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov Display [do not display] the additional section of a
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov reply. The default is to display it.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov<dt><span class="term"><code class="option">+[no]adflag</code></span></dt>
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov Set [do not set] the AD (authentic data) bit in the
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov query. This requests the server to return whether
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov all of the answer and authority sections have all
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov been validated as secure according to the security
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov policy of the server. AD=1 indicates that all records
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov have been validated as secure and the answer is not
<dt><span class="term"><code class="option">+[no]cookie[<span class="optional">=####</span>]</code></span></dt>
e.g. "[ key id = value ]".
accepted. Setting a named flag (e.g. DO) will silently be