dig.docbook revision ce67023ae3ad39a77da5361d0187ab6f3f0219cb
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews [<!ENTITY mdash "—">]>
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater - Copyright (C) 2004-2011, 2013-2015 Internet Systems Consortium, Inc. ("ISC")
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - Copyright (C) 2000-2003 Internet Software Consortium.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - Permission to use, copy, modify, and/or distribute this software for any
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - purpose with or without fee is hereby granted, provided that the above
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - copyright notice and this permission notice appear in all copies.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - PERFORMANCE OF THIS SOFTWARE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <refentryinfo>
0c6ada0a814f3c5417daa1654129bc2af56ed504Automatic Updater </refentryinfo>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <refnamediv>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </refnamediv>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </copyright>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </copyright>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <refsynopsisdiv>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <cmdsynopsis>
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User <arg><option>-b <replaceable class="parameter">address</replaceable></option></arg>
c247e3f281613fabe1af362e9f3157e35ebbe52cMark Andrews <arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User <arg><option>-f <replaceable class="parameter">filename</replaceable></option></arg>
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User <arg><option>-k <replaceable class="parameter">filename</replaceable></option></arg>
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User <arg><option>-p <replaceable class="parameter">port#</replaceable></option></arg>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <arg><option>-q <replaceable class="parameter">name</replaceable></option></arg>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <arg><option>-t <replaceable class="parameter">type</replaceable></option></arg>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <arg><option>-x <replaceable class="parameter">addr</replaceable></option></arg>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <arg><option>-y <replaceable class="parameter"><optional>hmac:</optional>name:key</replaceable></option></arg>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </cmdsynopsis>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <cmdsynopsis>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </cmdsynopsis>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <cmdsynopsis>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <arg choice="opt" rep="repeat">global-queryopt</arg>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </cmdsynopsis>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </refsynopsisdiv>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews (domain information groper) is a flexible tool
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews for interrogating DNS name servers. It performs DNS lookups and
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews displays the answers that are returned from the name server(s) that
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews were queried. Most DNS administrators use <command>dig</command> to
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews troubleshoot DNS problems because of its flexibility, ease of use and
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews clarity of output. Other lookup tools tend to have less functionality
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Although <command>dig</command> is normally used with
1224c3b69b3d18f7127aa042644936af25a2d679Mark Andrews command-line
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews arguments, it also has a batch mode of operation for reading lookup
1224c3b69b3d18f7127aa042644936af25a2d679Mark Andrews requests from a file. A brief summary of its command-line arguments
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews and options is printed when the <option>-h</option> option is given.
1224c3b69b3d18f7127aa042644936af25a2d679Mark Andrews Unlike earlier versions, the BIND 9 implementation of
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User <command>dig</command> allows multiple lookups to be issued
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews command line.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Unless it is told to query a specific name server,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <command>dig</command> will try each of the servers listed in
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <filename>/etc/resolv.conf</filename>. If no usable server addresses
d3ddafd7469d1f3430ccd1b0fe0d13ccbbaf5debTinderbox User are found, <command>dig</command> will send the query to the local
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews When no command line arguments or options are given,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <command>dig</command> will perform an NS query for "." (the root).
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews It is possible to set per-user defaults for <command>dig</command> via
c247e3f281613fabe1af362e9f3157e35ebbe52cMark Andrews <filename>${HOME}/.digrc</filename>. This file is read and
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews any options in it
c247e3f281613fabe1af362e9f3157e35ebbe52cMark Andrews are applied before the command line arguments.
c247e3f281613fabe1af362e9f3157e35ebbe52cMark Andrews The IN and CH class names overlap with the IN and CH top level
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews domain names. Either use the <option>-t</option> and
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <option>-c</option> options to specify the type and class,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews use the <option>-q</option> the specify the domain name, or
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews use "IN." and "CH." when looking up these top level domains.
d3ddafd7469d1f3430ccd1b0fe0d13ccbbaf5debTinderbox User A typical invocation of <command>dig</command> looks like:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <programlisting> dig @server name type </programlisting>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <variablelist>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User is the name or IP address of the name server to query. This
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User can be an IPv4 address in dotted-decimal notation or an IPv6
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User address in colon-delimited notation. When the supplied
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <parameter>server</parameter> argument is a hostname,
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <command>dig</command> resolves that name before querying
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User that name server.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User If no <parameter>server</parameter> argument is
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User address is found there, it queries the name server at
4f9cb7bd58e2c0a7407fee3758ea265aee329ac6Tinderbox User that address. If either of the <option>-4</option> or
4f9cb7bd58e2c0a7407fee3758ea265aee329ac6Tinderbox User only addresses for the corresponding transport
4f9cb7bd58e2c0a7407fee3758ea265aee329ac6Tinderbox User will be tried. If no usable addresses are found,
4f9cb7bd58e2c0a7407fee3758ea265aee329ac6Tinderbox User <command>dig</command> will send the query to the
4f9cb7bd58e2c0a7407fee3758ea265aee329ac6Tinderbox User local host. The reply from the name server that
4f9cb7bd58e2c0a7407fee3758ea265aee329ac6Tinderbox User responds is displayed.
4f9cb7bd58e2c0a7407fee3758ea265aee329ac6Tinderbox User </varlistentry>
4f9cb7bd58e2c0a7407fee3758ea265aee329ac6Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User is the name of the resource record that is to be looked up.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User indicates what type of query is required —
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User ANY, A, MX, SIG, etc.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <parameter>type</parameter> can be any valid query
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <parameter>type</parameter> argument is supplied,
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <command>dig</command> will perform a lookup for an
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </variablelist>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <variablelist>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Use IPv4 only.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Use IPv6 only.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <term>-b <replaceable class="parameter">address<optional>#port</optional></replaceable></term>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Set the source IP address of the query.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User The <parameter>address</parameter> must be a valid address on
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User one of the host's network interfaces, or "0.0.0.0" or "::". An
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User optional port may be specified by appending "#<port>"
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <term>-c <replaceable class="parameter">class</replaceable></term>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Set the query class. The
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User default <parameter>class</parameter> is IN; other classes
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User are HS for Hesiod records or CH for Chaosnet records.
f2016fcecf098726740507a5522dca04c49aeb82Tinderbox User </varlistentry>
f2016fcecf098726740507a5522dca04c49aeb82Tinderbox User <varlistentry>
f2016fcecf098726740507a5522dca04c49aeb82Tinderbox User <term>-f <replaceable class="parameter">file</replaceable></term>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Batch mode: <command>dig</command> reads a list of lookup
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User requests to process from the
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User given <parameter>file</parameter>. Each line in the file
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User should be organized in the same way they would be
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User presented as queries to
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <command>dig</command> using the command-line interface.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Do reverse IPv6 lookups using the obsolete RFC1886 IP6.INT
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User domain, which is no longer in use. Obsolete bit string
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User label queries (RFC2874) are not attempted.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <term>-k <replaceable class="parameter">keyfile</replaceable></term>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Sign queries using TSIG using a key read from the given file.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Key files can be generated using
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <citerefentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <refentrytitle>tsig-keygen</refentrytitle><manvolnum>8</manvolnum>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </citerefentry>.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User When using TSIG authentication with <command>dig</command>,
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User the name server that is queried needs to know the key and
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User algorithm that is being used. In BIND, this is done by
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Enable memory usage debugging.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <!-- It enables ISC_MEM_DEBUGTRACE and ISC_MEM_DEBUGRECORD
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User documented in include/isc/mem.h -->
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <term>-p <replaceable class="parameter">port</replaceable></term>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Send the query to a non-standard port on the server,
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User instead of the defaut port 53. This option would be used
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User to test a name server that has been configured to listen
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User for queries on a non-standard port number.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <term>-q <replaceable class="parameter">name</replaceable></term>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User The domain name to query. This is useful to distinguish
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User the <parameter>name</parameter> from other arguments.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <term>-t <replaceable class="parameter">type</replaceable></term>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User The resource record type to query. It can be any valid query type
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User supported in BIND 9. The default query type is "A", unless the
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <option>-x</option> option is supplied to indicate a reverse lookup.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User A zone transfer can be requested by specifying a type of AXFR. When
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User an incremental zone transfer (IXFR) is required, set the
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <parameter>type</parameter> to <literal>ixfr=N</literal>.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User The incremental zone transfer will contain the changes
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User made to the zone since the serial number in the zone's SOA
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Print the version number and exit.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <term>-x <replaceable class="parameter">addr</replaceable></term>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Simplified reverse lookups, for mapping addresses to
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User names. The <parameter>addr</parameter> is an IPv4 address
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User in dotted-decimal notation, or a colon-delimited IPv6
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User address. When the <option>-x</option> is used, there is no
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User need to provide
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User the <parameter>name</parameter>, <parameter>class</parameter>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User arguments. <command>dig</command> automatically performs a
94479b38340a00f0daf0ae0e1d3d673f845609ffTinderbox User lookup for a name like
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <literal>94.2.0.192.in-addr.arpa</literal> and sets the
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User query type and class to PTR and IN respectively. IPv6
ccee3948124ab4c8bc3afa4369177913edb1fca2Tinderbox User addresses are looked up using nibble format under the
ccee3948124ab4c8bc3afa4369177913edb1fca2Tinderbox User IP6.ARPA domain (but see also the <option>-i</option>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <term>-y <replaceable class="parameter"><optional>hmac:</optional>keyname:secret</replaceable></term>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Sign queries using TSIG with the given authentication key.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <parameter>keyname</parameter> is the name of the key, and
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <parameter>secret</parameter> is the base64 encoded shared secret.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <parameter>hmac</parameter> is the name of the key algorithm;
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User valid choices are <literal>hmac-md5</literal>,
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <literal>hmac-sha1</literal>, <literal>hmac-sha224</literal>,
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <literal>hmac-sha256</literal>, <literal>hmac-sha384</literal>, or
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <literal>hmac-sha512</literal>. If <parameter>hmac</parameter>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User is not specified, the default is <literal>hmac-md5</literal>.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User NOTE: You should use the <option>-k</option> option and
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User avoid the <option>-y</option> option, because
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User with <option>-y</option> the shared secret is supplied as
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User a command line argument in clear text. This may be visible
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User in the output from
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <citerefentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <refentrytitle>ps</refentrytitle><manvolnum>1</manvolnum>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </citerefentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User or in a history file maintained by the user's shell.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </variablelist>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User provides a number of query options which affect
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User the way in which lookups are made and the results displayed. Some of
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User these set or reset flag bits in the query header, some determine which
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User sections of the answer get printed, and others determine the timeout
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User and retry strategies.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Each query option is identified by a keyword preceded by a plus sign
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User (<literal>+</literal>). Some keywords set or reset an
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User option. These may be preceded
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User by the string <literal>no</literal> to negate the meaning of
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User that keyword. Other
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User keywords assign values to options like the timeout interval. They
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User have the form <option>+keyword=value</option>.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Keywords may be abbreviated, provided the abbreviation is
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User unambiguous; for example, <literal>+cd</literal> is equivalent
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User The query options are:
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <variablelist>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User A synonym for <parameter>+[no]aaonly</parameter>.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Sets the "aa" flag in the query.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <term><option>+[no]additional</option></term>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Display [do not display] the additional section of a
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User reply. The default is to display it.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
74ae031d9d7780015c11242b71cecca905ada695Tinderbox User Set [do not set] the AD (authentic data) bit in the
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User query. This requests the server to return whether
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User all of the answer and authority sections have all
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User been validated as secure according to the security
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User policy of the server. AD=1 indicates that all records
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User have been validated as secure and the answer is not
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User from a OPT-OUT range. AD=0 indicate that some part
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User of the answer was insecure or not validated. This
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User bit is set by default.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Set or clear all display flags.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Display [do not display] the answer section of a
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User reply. The default is to display it.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Display [do not display] the authority section of a
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User reply. The default is to display it.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Retry lookup with the new server cookie if a
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User BADCOOKIE response is received.
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User </varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <varlistentry>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User <term><option>+[no]besteffort</option></term>
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User Attempt to display the contents of messages which are
0ccb0e98c77a9b9636a036f8f64f5679a430aaf4Tinderbox User malformed. The default is to not display malformed
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Set the UDP message buffer size advertised using EDNS0
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews to <parameter>B</parameter> bytes. The maximum and
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews minimum sizes of this buffer are 65535 and 0 respectively.
d3ddafd7469d1f3430ccd1b0fe0d13ccbbaf5debTinderbox User Values outside this range are rounded up or down
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews appropriately. Values other than zero will cause a
1d216bfaa764f2b40c57cf61987453c5a6fa9b0aMark Andrews EDNS query to be sent.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Set [do not set] the CD (checking disabled) bit in
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews the query. This requests the server to not perform
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews DNSSEC validation of responses.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Display [do not display] the CLASS when printing the
4abdfc917e6635a7c81d1f931a0c79227e72d025Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Toggles the printing of the initial comment in the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews output identifying the version of <command>dig</command>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews and the query options that have been applied. This
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews comment is printed by default.
e.g. "[ key id = value ]".
accepted. Setting a named flag (e.g. DO) will silently be