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