dig.docbook revision 20489550151432d8d99c3f49629c7c718fdca6ab
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
48900a8f62784cce8afb632190512581e1c20d34Tinderbox User [<!ENTITY mdash "—">]>
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - Copyright (C) 2004-2011, 2013 Internet Systems Consortium, Inc. ("ISC")
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - Copyright (C) 2000-2003 Internet Software Consortium.
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson - Permission to use, copy, modify, and/or distribute this software for any
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews - purpose with or without fee is hereby granted, provided that the above
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - copyright notice and this permission notice appear in all copies.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User - 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
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User - PERFORMANCE OF THIS SOFTWARE.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User<!-- $Id: dig.docbook,v 1.51 2011/11/04 11:02:50 jreed Exp $ -->
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <refentryinfo>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </refentryinfo>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </refnamediv>
9700e6d72c3ba0d0c567969ab97d9eff202656d4Tinderbox User <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <holder>Internet Software Consortium.</holder>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <refsynopsisdiv>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <cmdsynopsis>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <arg><option>-b <replaceable class="parameter">address</replaceable></option></arg>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <arg><option>-f <replaceable class="parameter">filename</replaceable></option></arg>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <arg><option>-k <replaceable class="parameter">filename</replaceable></option></arg>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <arg><option>-p <replaceable class="parameter">port#</replaceable></option></arg>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <arg><option>-q <replaceable class="parameter">name</replaceable></option></arg>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <arg><option>-t <replaceable class="parameter">type</replaceable></option></arg>
d95b19f839f5bad2d1c25577fd334907bd90656cTinderbox User <arg><option>-x <replaceable class="parameter">addr</replaceable></option></arg>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <arg><option>-y <replaceable class="parameter"><optional>hmac:</optional>name:key</replaceable></option></arg>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </cmdsynopsis>
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User <cmdsynopsis>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein </cmdsynopsis>
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark Andrews <cmdsynopsis>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <arg choice="opt" rep="repeat">global-queryopt</arg>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein </cmdsynopsis>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </refsynopsisdiv>
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User (domain information groper) is a flexible tool
d8620c7234281056fdfd2ee40cf16636b8281092Tinderbox User for interrogating DNS name servers. It performs DNS lookups and
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein displays the answers that are returned from the name server(s) that
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User were queried. Most DNS administrators use <command>dig</command> to
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User troubleshoot DNS problems because of its flexibility, ease of use and
b49958b502ee45022010a0b1bed3968f598895a4Automatic Updater clarity of output. Other lookup tools tend to have less functionality
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User Although <command>dig</command> is normally used with
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein command-line
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein arguments, it also has a batch mode of operation for reading lookup
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein requests from a file. A brief summary of its command-line arguments
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein and options is printed when the <option>-h</option> option is given.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Unlike earlier versions, the BIND 9 implementation of
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <command>dig</command> allows multiple lookups to be issued
665a24faf6b3711e4012ac02ae5f0981c093ac1eTinderbox User command line.
b3cbb2f1ad021349e89807f3492df6e4e679cd56Mark Andrews Unless it is told to query a specific name server,
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <command>dig</command> will try each of the servers listed in
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <filename>/etc/resolv.conf</filename>. If no usable server addreses
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User are found, <command>dig</command> will send the query to the local
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User When no command line arguments or options are given,
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User <command>dig</command> will perform an NS query for "." (the root).
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein It is possible to set per-user defaults for <command>dig</command> via
61e1dc26d62c2a0059e3ca7efe2ad0f4a5b8df92Mark Andrews <filename>${HOME}/.digrc</filename>. This file is read and
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein any options in it
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User are applied before the command line arguments.
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User The IN and CH class names overlap with the IN and CH top level
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User domains names. Either use the <option>-t</option> and
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User <option>-c</option> options to specify the type and class,
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User use the <option>-q</option> the specify the domain name, or
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User use "IN." and "CH." when looking up these top level domains.
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User A typical invocation of <command>dig</command> looks like:
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User <programlisting> dig @server name type </programlisting>
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User <variablelist>
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User is the name or IP address of the name server to query. This
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User can be an IPv4 address in dotted-decimal notation or an IPv6
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User address in colon-delimited notation. When the supplied
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <parameter>server</parameter> argument is a hostname,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <command>dig</command> resolves that name before querying
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User that name server.
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User If no <parameter>server</parameter> argument is
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User address is found there, it queries the name server at
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User that address. If either of the <option>-4</option> or
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User only addresses for the corresponding transport
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User will be tried. If no usable addresses are found,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <command>dig</command> will send the query to the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein local host. The reply from the name server that
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein responds is displayed.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <varlistentry>
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User is the name of the resource record that is to be looked up.
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User indicates what type of query is required —
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User ANY, A, MX, SIG, etc.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <parameter>type</parameter> can be any valid query
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <parameter>type</parameter> argument is supplied,
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <command>dig</command> will perform a lookup for an
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </variablelist>
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User The <option>-b</option> option sets the source IP address of the query
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User to <parameter>address</parameter>. This must be a valid
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User one of the host's network interfaces or "0.0.0.0" or "::". An optional
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User may be specified by appending "#<port>"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User The default query class (IN for internet) is overridden by the
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <option>-c</option> option. <parameter>class</parameter> is
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User class, such as HS for Hesiod records or CH for Chaosnet records.
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User The <option>-f</option> option makes <command>dig </command>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User in batch mode by reading a list of lookup requests to process from the
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User file <parameter>filename</parameter>. The file contains a
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User queries, one per line. Each entry in the file should be organized in
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User the same way they would be presented as queries to
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User <command>dig</command> using the command-line interface.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User The <option>-m</option> option enables memory usage debugging.
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User <!-- It enables ISC_MEM_DEBUGTRACE and ISC_MEM_DEBUGRECORD
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User documented in include/isc/mem.h -->
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User If a non-standard port number is to be queried, the
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <option>-p</option> option is used. <parameter>port#</parameter> is
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User the port number that <command>dig</command> will send its
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User instead of the standard DNS port number 53. This option would be used
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User to test a name server that has been configured to listen for queries
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User on a non-standard port number.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User The <option>-4</option> option forces <command>dig</command>
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User use IPv4 query transport. The <option>-6</option> option forces
dec590a3deb8e87380a8bd3a77d535dba3729bf6Tinderbox User <command>dig</command> to only use IPv6 query transport.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User The <option>-t</option> option sets the query type to
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User <parameter>type</parameter>. It can be any valid query type
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User supported in BIND 9. The default query type is "A", unless the
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User <option>-x</option> option is supplied to indicate a reverse lookup.
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User A zone transfer can be requested by specifying a type of AXFR. When
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User an incremental zone transfer (IXFR) is required,
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <parameter>type</parameter> is set to <literal>ixfr=N</literal>.
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User The incremental zone transfer will contain the changes made to the zone
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User since the serial number in the zone's SOA record was
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User The <option>-q</option> option sets the query name to
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User <parameter>name</parameter>. This useful do distinguish the
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User <parameter>name</parameter> from other arguments.
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User Reverse lookups — mapping addresses to names — are simplified by the
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User <option>-x</option> option. <parameter>addr</parameter> is
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User address in dotted-decimal notation, or a colon-delimited IPv6 address.
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User When this option is used, there is no need to provide the
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <parameter>name</parameter>, <parameter>class</parameter> and
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <parameter>type</parameter> arguments. <command>dig</command>
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User automatically performs a lookup for a name like
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <literal>11.12.13.10.in-addr.arpa</literal> and sets the
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User query type and
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User class to PTR and IN respectively. By default, IPv6 addresses are
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User looked up using nibble format under the IP6.ARPA domain.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User To use the older RFC1886 method using the IP6.INT domain
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User specify the <option>-i</option> option. Bit string labels (RFC2874)
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User are now experimental and are not attempted.
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User To sign the DNS queries sent by <command>dig</command> and
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User responses using transaction signatures (TSIG), specify a TSIG key file
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User using the <option>-k</option> option. You can also specify the TSIG
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User key itself on the command line using the <option>-y</option> option;
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User <parameter>hmac</parameter> is the type of the TSIG, default HMAC-MD5,
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User <parameter>name</parameter> is the name of the TSIG key and
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User <parameter>key</parameter> is the actual key. The key is a
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User encoded string, typically generated by
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <citerefentry>
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User <refentrytitle>dnssec-keygen</refentrytitle><manvolnum>8</manvolnum>
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User </citerefentry>.
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User Caution should be taken when using the <option>-y</option> option on
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User multi-user systems as the key can be visible in the output from
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User <citerefentry>
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User <refentrytitle>ps</refentrytitle><manvolnum>1</manvolnum>
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User </citerefentry>
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User or in the shell's history file. When
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User using TSIG authentication with <command>dig</command>, the name
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User server that is queried needs to know the key and algorithm that is
281ed127e3ed6c7e07792c19c3bc4562f71cfa90Tinderbox User being used. In BIND, this is done by providing appropriate
281ed127e3ed6c7e07792c19c3bc4562f71cfa90Tinderbox User <command>key</command> and <command>server</command> statements in
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User provides a number of query options which affect
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User the way in which lookups are made and the results displayed. Some of
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User these set or reset flag bits in the query header, some determine which
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User sections of the answer get printed, and others determine the timeout
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User and retry strategies.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User Each query option is identified by a keyword preceded by a plus sign
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User (<literal>+</literal>). Some keywords set or reset an
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User option. These may be preceded
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User by the string <literal>no</literal> to negate the meaning of
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein that keyword. Other
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein keywords assign values to options like the timeout interval. They
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein The query options are:
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <variablelist>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein Use [do not use] TCP when querying name servers. The default
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein behavior is to use UDP unless an AXFR or IXFR query is
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein requested, in
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein which case a TCP connection is used.
335c82aebd0da12b401cfac28bd305da95a4d052Tinderbox User </varlistentry>
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Use [do not use] TCP when querying name servers. This alternate
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User provided for backwards
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User compatibility. The "vc" stands for "virtual circuit".
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Ignore truncation in UDP responses instead of retrying with TCP.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User default, TCP retries are performed.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <term><option>+domain=somename</option></term>
370c55dfcdc559b8761ef3eb4921498580caf14cAutomatic Updater Set the search list to contain the single domain
370c55dfcdc559b8761ef3eb4921498580caf14cAutomatic Updater <parameter>somename</parameter>, as if specified in
370c55dfcdc559b8761ef3eb4921498580caf14cAutomatic Updater <filename>/etc/resolv.conf</filename>, and enable
77dccf2a5d9327d16b4374a135cdb99bdd48620eAutomatic Updater processing as if the <parameter>+search</parameter>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User option were given.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Use [do not use] the search list defined by the searchlist or
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User directive in <filename>resolv.conf</filename> (if
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User The search list is not used by default.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <term><option>+[no]showsearch</option></term>
1879ff49326b49a9e4eadaca193c631409bf8575Tinderbox User Perform [do not perform] a search showing intermediate
1879ff49326b49a9e4eadaca193c631409bf8575Tinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User Deprecated, treated as a synonym for <parameter>+[no]search</parameter>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User Sets the "aa" flag in the query.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User A synonym for <parameter>+[no]aaonly</parameter>.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User Set [do not set] the AD (authentic data) bit in the
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User query. This requests the server to return whether
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User all of the answer and authority sections have all
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User been validated as secure according to the security
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User policy of the server. AD=1 indicates that all records
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User have been validated as secure and the answer is not
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User from a OPT-OUT range. AD=0 indicate that some part
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User of the answer was insecure or not validated. This
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User bit is set by default.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User Set [do not set] the CD (checking disabled) bit in the query.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User requests the server to not perform DNSSEC validation of
1879ff49326b49a9e4eadaca193c631409bf8575Tinderbox User </varlistentry>
1879ff49326b49a9e4eadaca193c631409bf8575Tinderbox User <varlistentry>
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User Display [do not display] the CLASS when printing the record.
1879ff49326b49a9e4eadaca193c631409bf8575Tinderbox User </varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User Display [do not display] the TTL when printing the record.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User </varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User Toggle the setting of the RD (recursion desired) bit
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User in the query. This bit is set by default, which means
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <command>dig</command> normally sends recursive
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User queries. Recursion is automatically disabled when
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <parameter>+trace</parameter> query options are used.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User When this option is set, <command>dig</command>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User attempts to find the
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User authoritative name servers for the zone containing the name
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User looked up and display the SOA record that each name server has
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
d9f0b06dc2bba47e3fe63afdf41c638d3517ceffTinderbox User Toggle tracing of the delegation path from the root
d9f0b06dc2bba47e3fe63afdf41c638d3517ceffTinderbox User name servers for the name being looked up. Tracing
a24330c4805a224191ab687d0291963062fe3355Tinderbox User is disabled by default. When tracing is enabled,
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <command>dig</command> makes iterative queries to
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User resolve the name being looked up. It will follow
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User referrals from the root servers, showing the answer
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User from each server that was used to resolve the lookup.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <command>+dnssec</command> is also set when +trace is
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User set to better emulate the default queries from a nameserver.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
4fe1df3962f1f37304b6789b2d1a33a70fcb0b28Tinderbox User <varlistentry>
4fe1df3962f1f37304b6789b2d1a33a70fcb0b28Tinderbox User Toggles the printing of the initial comment in the output
4fe1df3962f1f37304b6789b2d1a33a70fcb0b28Tinderbox User the version of <command>dig</command> and the query
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User options that have
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User been applied. This comment is printed by default.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
def82e8de9ff45e29ab21e5aba9a39539138c1f4Tinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Provide a terse answer. The default is to print the answer in a
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User verbose form.
abe69df9a7de5cda07a2b8e19e8b7c981bcd7a9dTinderbox User </varlistentry>
abe69df9a7de5cda07a2b8e19e8b7c981bcd7a9dTinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Show [or do not show] the IP address and port number that
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User answer when the <parameter>+short</parameter> option
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User is enabled. If
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User short form answers are requested, the default is not to show the
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User source address and port number of the server that provided the
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <varlistentry>
a3ff24aaa545c45b8c581b2127d02d735aff8881Tinderbox User Toggle the display of comment lines in the output. The default
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User is to print comments.
a3ff24aaa545c45b8c581b2127d02d735aff8881Tinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <term><option>+[no]rrcomments</option></term>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Toggle the display of per-record comments in the output (for
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User example, human-readable key information about DNSKEY records).
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User The default is not to print record comments unless multiline
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User mode is active.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
8d72b87657b901cad11c512829242dd6e94d3cf0Tinderbox User Toggle the display of cryptographic fields in DNSSEC records.
8d72b87657b901cad11c512829242dd6e94d3cf0Tinderbox User The contents of these field are unnecessary to debug most DNSSEC
8d72b87657b901cad11c512829242dd6e94d3cf0Tinderbox User validation failures and removing them makes it easier to see
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User the common failures. The default is to display the fields.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User When omitted they are replaced by the string "[omitted]" or
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User in the DNSKEY case the key id is displayed as the replacement,
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User e.g. "[ key id = value ]".
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User Split long hex- or base64-formatted fields in resource
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User records into chunks of <parameter>W</parameter> characters
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User (where <parameter>W</parameter> is rounded up to the nearest
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User multiple of 4).
0226754d9e537fd56b690d5890cfe215a6c59f89Tinderbox User <parameter>+split=0</parameter> causes fields not to be
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User split at all. The default is 56 characters, or 44 characters
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User when multiline mode is active.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User This query option toggles the printing of statistics: when the
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User was made, the size of the reply and so on. The default
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User to print the query statistics.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User Print [do not print] the query as it is sent.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User By default, the query is not printed.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User </varlistentry>
78ec962d9828200d18cd0e41b7d6b9792a74923dTinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Print [do not print] the question section of a query when an
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User returned. The default is to print the question section as a
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User Display [do not display] the answer section of a reply. The
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User is to display it.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Display [do not display] the authority section of a reply. The
e9ed929fd1a190f29391be9c7ae324e7e56ff9c9Tinderbox User default is to display it.
e9ed929fd1a190f29391be9c7ae324e7e56ff9c9Tinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <term><option>+[no]additional</option></term>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Display [do not display] the additional section of a reply.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User The default is to display it.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User Set or clear all display flags.
335c82aebd0da12b401cfac28bd305da95a4d052Tinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Sets the timeout for a query to
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <parameter>T</parameter> seconds. The default
77dccf2a5d9327d16b4374a135cdb99bdd48620eAutomatic Updater timeout is 5 seconds.
77dccf2a5d9327d16b4374a135cdb99bdd48620eAutomatic Updater An attempt to set <parameter>T</parameter> to less
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User than 1 will result
77dccf2a5d9327d16b4374a135cdb99bdd48620eAutomatic Updater in a query timeout of 1 second being applied.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User Sets the number of times to try UDP queries to server to
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <parameter>T</parameter> instead of the default, 3.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <parameter>T</parameter> is less than or equal to
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User zero, the number of
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User tries is silently rounded up to 1.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User </varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User Sets the number of times to retry UDP queries to server to
78ec962d9828200d18cd0e41b7d6b9792a74923dTinderbox User <parameter>T</parameter> instead of the default, 2.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <parameter>+tries</parameter>, this does not include
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
78ec962d9828200d18cd0e41b7d6b9792a74923dTinderbox User <varlistentry>
78ec962d9828200d18cd0e41b7d6b9792a74923dTinderbox User Set the number of dots that have to appear in
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <parameter>name</parameter> to <parameter>D</parameter> for it to be
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User considered absolute. The default value is that defined using
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User ndots statement in <filename>/etc/resolv.conf</filename>, or 1 if no
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User ndots statement is present. Names with fewer dots are
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User interpreted as
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User relative names and will be searched for in the domains listed in
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <option>search</option> or <option>domain</option> directive in
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
48900a8f62784cce8afb632190512581e1c20d34Tinderbox User Set the UDP message buffer size advertised using EDNS0 to
48900a8f62784cce8afb632190512581e1c20d34Tinderbox User <parameter>B</parameter> bytes. The maximum and minimum sizes
48900a8f62784cce8afb632190512581e1c20d34Tinderbox User of this buffer are 65535 and 0 respectively. Values outside
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User this range are rounded up or down appropriately.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Values other than zero will cause a EDNS query to be sent.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User Specify the EDNS version to query with. Valid values
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User are 0 to 255. Setting the EDNS version will cause
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User a EDNS query to be sent. <option>+noedns</option>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User clears the remembered EDNS version. EDNS is set to
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User 0 by default.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Print records like the SOA records in a verbose multi-line
e285c11870c6263cd79b418e104c7eb3e2d96952Tinderbox User format with human-readable comments. The default is to print
6825f304c5f0cc2d4ba22fa2b6f7a431f9c1de59Tinderbox User each record on a single line, to facilitate machine parsing
6825f304c5f0cc2d4ba22fa2b6f7a431f9c1de59Tinderbox User </varlistentry>
6825f304c5f0cc2d4ba22fa2b6f7a431f9c1de59Tinderbox User <varlistentry>
e285c11870c6263cd79b418e104c7eb3e2d96952Tinderbox User Print only one (starting) SOA record when performing
e285c11870c6263cd79b418e104c7eb3e2d96952Tinderbox User an AXFR. The default is to print both the starting and
e285c11870c6263cd79b418e104c7eb3e2d96952Tinderbox User ending SOA records.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
c32570b3191fdfb38a65567b8bb729fdb42ff847Tinderbox User Do not try the next server if you receive a SERVFAIL. The
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User to not try the next server which is the reverse of normal stub
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson </varlistentry>
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User <varlistentry>
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User Attempt to display the contents of messages which are malformed.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User The default is to not display malformed answers.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Requests DNSSEC records be sent by setting the DNSSEC OK bit
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User in the OPT record in the additional section of the query.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User </varlistentry>
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Chase DNSSEC signature chains. Requires dig be compiled with
c0cbdeedb5e119c640f098da1851cb1b9adcc739Tinderbox User -DDIG_SIGCHASE.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User </varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <term><option>+trusted-key=####</option></term>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Specifies a file containing trusted keys to be used with
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <option>+sigchase</option>. Each DNSKEY record must be
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User on its own line.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User If not specified, <command>dig</command> will look for
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User <filename>/etc/trusted-key.key</filename> then
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <filename>trusted-key.key</filename> in the current directory.
90153b6536f7a5078e1c157c980110dbcd7fe205Mark Andrews Requires dig be compiled with -DDIG_SIGCHASE.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User When chasing DNSSEC signature chains perform a top-down
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User Requires dig be compiled with -DDIG_SIGCHASE.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Include an EDNS name server ID request when sending a query.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </varlistentry>
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User <varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User Keep the TCP socket open between queries and reuse it rather
ee2e5fec653c2ccbe1531d6e0bded2218d6a76afTinderbox User than creating a new TCP socket for each lookup. The default
ee2e5fec653c2ccbe1531d6e0bded2218d6a76afTinderbox User </varlistentry>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User </variablelist>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User The BIND 9 implementation of <command>dig </command>
def82e8de9ff45e29ab21e5aba9a39539138c1f4Tinderbox User specifying multiple queries on the command line (in addition to
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User supporting the <option>-f</option> batch file option). Each of those
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User queries can be supplied with its own set of flags, options and query
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein In this case, each <parameter>query</parameter> argument
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein represent an
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson individual query in the command-line syntax described above. Each
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein consists of any of the standard options and flags, the name to be
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User looked up, an optional query type and class and any query options that
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User should be applied to that query.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User A global set of query options, which should be applied to all queries,
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User can also be supplied. These global query options must precede the
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User first tuple of name, class, type, options, flags, and query options
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein supplied on the command line. Any global query options (except
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein overridden by a query-specific set of query options. For example:
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <programlisting>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeindig +qr www.isc.org any -x 127.0.0.1 isc.org ns +noqr
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein</programlisting>
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User shows how <command>dig</command> could be used from the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein to make three lookups: an ANY query for <literal>www.isc.org</literal>, a
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein reverse lookup of 127.0.0.1 and a query for the NS records of
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein A global query option of <parameter>+qr</parameter> is
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein that <command>dig</command> shows the initial query it made
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User lookup. The final query has a local query option of
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <parameter>+noqr</parameter> which means that <command>dig</command>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein will not print the initial query when it looks up the NS records for
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein If <command>dig</command> has been built with IDN (internationalized
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User domain name) support, it can accept and display non-ASCII domain names.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <command>dig</command> appropriately converts character encoding of
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein domain name before sending a request to DNS server or displaying a
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein reply from the server.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein If you'd like to turn off the IDN support for some reason, defines
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson the <envar>IDN_DISABLE</envar> environment variable.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein The IDN support is disabled if the variable is set when
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User <refentrytitle>host</refentrytitle><manvolnum>1</manvolnum>
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews </citerefentry>,
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User <citerefentry>
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews <refentrytitle>named</refentrytitle><manvolnum>8</manvolnum>
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews </citerefentry>,
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews <citerefentry>
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews <refentrytitle>dnssec-keygen</refentrytitle><manvolnum>8</manvolnum>
9d557856c2a19ec95ee73245f60a92f8675cf5baTinderbox User </citerefentry>,
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User There are probably too many query options.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User - Local variables: