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