dig.docbook revision 0f5144163c44a67d9be986383769852a0dae502a
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
f3064bfd1b75f7408cff6dbdb864ad62390307d3Mark Andrews "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews [<!ENTITY mdash "&#8212;">]>
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence<!--
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer - Copyright (C) 2004-2011, 2013, 2014 Internet Systems Consortium, Inc. ("ISC")
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer - Copyright (C) 2000-2003 Internet Software Consortium.
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer -
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence - Permission to use, copy, modify, and/or distribute this software for any
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - purpose with or without fee is hereby granted, provided that the above
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - copyright notice and this permission notice appear in all copies.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews -
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
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3d711f2f75cb9a9ddcbf1fca9b2de192e75340e6Mark Andrews - PERFORMANCE OF THIS SOFTWARE.
47058d17266420179fa294de6b82d8fb5b918df4Michael Sawyer-->
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer<refentry id="man.dig">
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <refentryinfo>
c9defbf4b968e8a61f391246431ac63d0d6a39abMichael Sawyer <date>February 19, 2014</date>
c9defbf4b968e8a61f391246431ac63d0d6a39abMichael Sawyer </refentryinfo>
c9defbf4b968e8a61f391246431ac63d0d6a39abMichael Sawyer
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington <refmeta>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <refentrytitle>dig</refentrytitle>
c9defbf4b968e8a61f391246431ac63d0d6a39abMichael Sawyer <manvolnum>1</manvolnum>
c9defbf4b968e8a61f391246431ac63d0d6a39abMichael Sawyer <refmiscinfo>BIND9</refmiscinfo>
c9defbf4b968e8a61f391246431ac63d0d6a39abMichael Sawyer </refmeta>
1893b56ef9f5f2bc2a0fbe80d3c6b69df1bdc7c2Michael Sawyer
55bf97a1b4b7f78b669b1179df1422cb9789c484Michael Sawyer <refnamediv>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <refname>dig</refname>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <refpurpose>DNS lookup utility</refpurpose>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer </refnamediv>
55bf97a1b4b7f78b669b1179df1422cb9789c484Michael Sawyer
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <docinfo>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <copyright>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <year>2004</year>
7ddb4c86a95ab721a70d406821352ce7b730a1bdAndreas Gustafsson <year>2005</year>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <year>2006</year>
55bf97a1b4b7f78b669b1179df1422cb9789c484Michael Sawyer <year>2007</year>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <year>2008</year>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <year>2009</year>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <year>2010</year>
0e0e575ec135a983a53c501cf48734b823361ab4Brian Wellington <year>2011</year>
fb2c34419d268d36acb222e08e6f789b45a81306Mark Andrews <year>2013</year>
0e0e575ec135a983a53c501cf48734b823361ab4Brian Wellington <year>2014</year>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer </copyright>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <copyright>
3d711f2f75cb9a9ddcbf1fca9b2de192e75340e6Mark Andrews <year>2000</year>
3d711f2f75cb9a9ddcbf1fca9b2de192e75340e6Mark Andrews <year>2001</year>
0e0e575ec135a983a53c501cf48734b823361ab4Brian Wellington <year>2002</year>
0e0e575ec135a983a53c501cf48734b823361ab4Brian Wellington <year>2003</year>
0e0e575ec135a983a53c501cf48734b823361ab4Brian Wellington <holder>Internet Software Consortium.</holder>
0e0e575ec135a983a53c501cf48734b823361ab4Brian Wellington </copyright>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer </docinfo>
0e0e575ec135a983a53c501cf48734b823361ab4Brian Wellington
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson <refsynopsisdiv>
a5ed46c9fd270775c39770bfd0250a52d374ebf2Michael Sawyer <cmdsynopsis>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <command>dig</command>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <arg choice="opt">@server</arg>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <arg><option>-b <replaceable class="parameter">address</replaceable></option></arg>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
da5d1cf1b1aa29ae53a0427be49291b04bd60549Mark Andrews <arg><option>-f <replaceable class="parameter">filename</replaceable></option></arg>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <arg><option>-k <replaceable class="parameter">filename</replaceable></option></arg>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <arg><option>-m</option></arg>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <arg><option>-p <replaceable class="parameter">port#</replaceable></option></arg>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <arg><option>-q <replaceable class="parameter">name</replaceable></option></arg>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <arg><option>-t <replaceable class="parameter">type</replaceable></option></arg>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <arg><option>-v</option></arg>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <arg><option>-x <replaceable class="parameter">addr</replaceable></option></arg>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <arg><option>-y <replaceable class="parameter"><optional>hmac:</optional>name:key</replaceable></option></arg>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <arg><option>-4</option></arg>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <arg><option>-6</option></arg>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <arg choice="opt">name</arg>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <arg choice="opt">type</arg>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <arg choice="opt">class</arg>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <arg choice="opt" rep="repeat">queryopt</arg>
a5ed46c9fd270775c39770bfd0250a52d374ebf2Michael Sawyer </cmdsynopsis>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <cmdsynopsis>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <command>dig</command>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <arg><option>-h</option></arg>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </cmdsynopsis>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
78838d3e0cd62423c23de5503910e01884d2104bBrian Wellington <cmdsynopsis>
78838d3e0cd62423c23de5503910e01884d2104bBrian Wellington <command>dig</command>
78838d3e0cd62423c23de5503910e01884d2104bBrian Wellington <arg choice="opt" rep="repeat">global-queryopt</arg>
78838d3e0cd62423c23de5503910e01884d2104bBrian Wellington <arg choice="opt" rep="repeat">query</arg>
78838d3e0cd62423c23de5503910e01884d2104bBrian Wellington </cmdsynopsis>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </refsynopsisdiv>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <refsect1>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <title>DESCRIPTION</title>
78838d3e0cd62423c23de5503910e01884d2104bBrian Wellington <para><command>dig</command>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer (domain information groper) is a flexible tool
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer for interrogating DNS name servers. It performs DNS lookups and
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer displays the answers that are returned from the name server(s) that
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer were queried. Most DNS administrators use <command>dig</command> to
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer troubleshoot DNS problems because of its flexibility, ease of use and
e32394a2ac3466a2235f79ee32c247a11be42a8dAndreas Gustafsson clarity of output. Other lookup tools tend to have less functionality
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer than <command>dig</command>.
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <para>
78838d3e0cd62423c23de5503910e01884d2104bBrian Wellington Although <command>dig</command> is normally used with
78838d3e0cd62423c23de5503910e01884d2104bBrian Wellington command-line
36c754f274dd439e5a7ebf2401427c1d51b21302Brian Wellington arguments, it also has a batch mode of operation for reading lookup
78838d3e0cd62423c23de5503910e01884d2104bBrian Wellington requests from a file. A brief summary of its command-line arguments
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer and options is printed when the <option>-h</option> option is given.
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer Unlike earlier versions, the BIND 9 implementation of
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <command>dig</command> allows multiple lookups to be issued
78838d3e0cd62423c23de5503910e01884d2104bBrian Wellington from the
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer command line.
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer Unless it is told to query a specific name server,
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <command>dig</command> will try each of the servers listed in
78838d3e0cd62423c23de5503910e01884d2104bBrian Wellington <filename>/etc/resolv.conf</filename>. If no usable server addresses
9a762177e6a0aff3ea5c00f87568c8ae3cd0e6c7Andreas Gustafsson are found, <command>dig</command> will send the query to the local
9a762177e6a0aff3ea5c00f87568c8ae3cd0e6c7Andreas Gustafsson host.
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </para>
066cb385cd8f801dd3757db2922c9b1f343e65edAndreas Gustafsson
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <para>
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington When no command line arguments or options are given,
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington <command>dig</command> will perform an NS query for "." (the root).
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington </para>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <para>
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington It is possible to set per-user defaults for <command>dig</command> via
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington <filename>${HOME}/.digrc</filename>. This file is read and
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington any options in it
cc48bb397fa6ba889f25157840492e68114dec8fBrian Wellington are applied before the command line arguments.
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington </para>
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington <para>
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington The IN and CH class names overlap with the IN and CH top level
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington domain names. Either use the <option>-t</option> and
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington <option>-c</option> options to specify the type and class,
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington use the <option>-q</option> the specify the domain name, or
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer use "IN." and "CH." when looking up these top level domains.
cc48bb397fa6ba889f25157840492e68114dec8fBrian Wellington </para>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington </refsect1>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <refsect1>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <title>SIMPLE USAGE</title>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <para>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington A typical invocation of <command>dig</command> looks like:
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <programlisting> dig @server name type </programlisting>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington where:
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington
c38b92000c0f1a95daaad5468777e165b8047de9Mark Andrews <variablelist>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <varlistentry>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <term><constant>server</constant></term>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <listitem>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <para>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington is the name or IP address of the name server to query. This
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington can be an IPv4 address in dotted-decimal notation or an IPv6
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington address in colon-delimited notation. When the supplied
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <parameter>server</parameter> argument is a hostname,
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <command>dig</command> resolves that name before querying
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington that name server.
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington </para>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <para>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington If no <parameter>server</parameter> argument is
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington provided, <command>dig</command> consults
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <filename>/etc/resolv.conf</filename>; if an
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington address is found there, it queries the name server at
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington that address. If either of the <option>-4</option> or
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <option>-6</option> options are in use, then
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington only addresses for the corresponding transport
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington will be tried. If no usable addresses are found,
2a23a625246acfbf6ff92b86a6b8b9df59dbeaa4Mark Andrews <command>dig</command> will send the query to the
1ae75c1024eb0475c2be352b8707772e16332ad0Mark Andrews local host. The reply from the name server that
1ae75c1024eb0475c2be352b8707772e16332ad0Mark Andrews responds is displayed.
1ae75c1024eb0475c2be352b8707772e16332ad0Mark Andrews </para>
1ae75c1024eb0475c2be352b8707772e16332ad0Mark Andrews </listitem>
1ae75c1024eb0475c2be352b8707772e16332ad0Mark Andrews </varlistentry>
1ae75c1024eb0475c2be352b8707772e16332ad0Mark Andrews
1ae75c1024eb0475c2be352b8707772e16332ad0Mark Andrews <varlistentry>
1ae75c1024eb0475c2be352b8707772e16332ad0Mark Andrews <term><constant>name</constant></term>
1ae75c1024eb0475c2be352b8707772e16332ad0Mark Andrews <listitem>
1ae75c1024eb0475c2be352b8707772e16332ad0Mark Andrews <para>
1ae75c1024eb0475c2be352b8707772e16332ad0Mark Andrews is the name of the resource record that is to be looked up.
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington </para>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington </listitem>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington </varlistentry>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <varlistentry>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <term><constant>type</constant></term>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <listitem>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <para>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington indicates what type of query is required &mdash;
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington ANY, A, MX, SIG, etc.
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <parameter>type</parameter> can be any valid query
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington type. If no
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <parameter>type</parameter> argument is supplied,
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <command>dig</command> will perform a lookup for an
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington A record.
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington </para>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington </listitem>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington </varlistentry>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington </variablelist>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington </para>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington </refsect1>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <refsect1>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <title>OPTIONS</title>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <para>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer The <option>-b</option> option sets the source IP address of the query
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer to <parameter>address</parameter>. This must be a valid
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer address on
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer one of the host's network interfaces or "0.0.0.0" or "::". An optional
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer port
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer may be specified by appending "#&lt;port&gt;"
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews </para>
7ddb4c86a95ab721a70d406821352ce7b730a1bdAndreas Gustafsson
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <para>
37e6e0ca1337351642798b1a6aa24ae40bf86399Andreas Gustafsson The default query class (IN for internet) is overridden by the
37e6e0ca1337351642798b1a6aa24ae40bf86399Andreas Gustafsson <option>-c</option> option. <parameter>class</parameter> is
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer any valid
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer class, such as HS for Hesiod records or CH for Chaosnet records.
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer </para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <para>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer The <option>-f</option> option makes <command>dig </command>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer operate
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer in batch mode by reading a list of lookup requests to process from the
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer file <parameter>filename</parameter>. The file contains a
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer number of
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence queries, one per line. Each entry in the file should be organized in
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer the same way they would be presented as queries to
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <command>dig</command> using the command-line interface.
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer </para>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer The <option>-m</option> option enables memory usage debugging.
37e6e0ca1337351642798b1a6aa24ae40bf86399Andreas Gustafsson <!-- It enables ISC_MEM_DEBUGTRACE and ISC_MEM_DEBUGRECORD
37e6e0ca1337351642798b1a6aa24ae40bf86399Andreas Gustafsson documented in include/isc/mem.h -->
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <para>
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson If a non-standard port number is to be queried, the
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson <option>-p</option> option is used. <parameter>port#</parameter> is
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington the port number that <command>dig</command> will send its
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington queries
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer instead of the standard DNS port number 53. This option would be used
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer to test a name server that has been configured to listen for queries
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson on a non-standard port number.
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson </para>
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer The <option>-4</option> option forces <command>dig</command>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer to only
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer use IPv4 query transport. The <option>-6</option> option forces
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson <command>dig</command> to only use IPv6 query transport.
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson </para>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington <para>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington The <option>-t</option> option sets the query type to
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence <parameter>type</parameter>. It can be any valid query type
368b37b616234fce3d23099eb180f1dd38e1fb62Mark Andrews which is
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer supported in BIND 9. The default query type is "A", unless the
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <option>-x</option> option is supplied to indicate a reverse lookup.
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer A zone transfer can be requested by specifying a type of AXFR. When
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer an incremental zone transfer (IXFR) is required,
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <parameter>type</parameter> is set to <literal>ixfr=N</literal>.
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer The incremental zone transfer will contain the changes made to the zone
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer since the serial number in the zone's SOA record was
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <parameter>N</parameter>.
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </para>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <para>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer The <option>-q</option> option sets the query name to
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <parameter>name</parameter>. This is useful to distinguish the
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <parameter>name</parameter> from other arguments.
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer </para>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <para>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer The <option>-v</option> causes <command>dig</command> to
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer print the version number and exit.
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews </para>
7ddb4c86a95ab721a70d406821352ce7b730a1bdAndreas Gustafsson
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <para>
37e6e0ca1337351642798b1a6aa24ae40bf86399Andreas Gustafsson Reverse lookups &mdash; mapping addresses to names &mdash; are simplified by the
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <option>-x</option> option. <parameter>addr</parameter> is
38cf6e52ce4b33795713388824b69d78e430b115Michael Sawyer an IPv4
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer address in dotted-decimal notation, or a colon-delimited IPv6 address.
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer When this option is used, there is no need to provide the
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <parameter>name</parameter>, <parameter>class</parameter> and
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <parameter>type</parameter> arguments. <command>dig</command>
37e6e0ca1337351642798b1a6aa24ae40bf86399Andreas Gustafsson automatically performs a lookup for a name like
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <literal>11.12.13.10.in-addr.arpa</literal> and sets the
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer query type and
37e6e0ca1337351642798b1a6aa24ae40bf86399Andreas Gustafsson class to PTR and IN respectively. By default, IPv6 addresses are
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer looked up using nibble format under the IP6.ARPA domain.
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer To use the older RFC1886 method using the IP6.INT domain
37e6e0ca1337351642798b1a6aa24ae40bf86399Andreas Gustafsson specify the <option>-i</option> option. Bit string labels (RFC2874)
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer are now experimental and are not attempted.
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer </para>
37e6e0ca1337351642798b1a6aa24ae40bf86399Andreas Gustafsson
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <para>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer To sign the DNS queries sent by <command>dig</command> and
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer their
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer responses using transaction signatures (TSIG), specify a TSIG key file
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer using the <option>-k</option> option. You can also specify the TSIG
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer key itself on the command line using the <option>-y</option> option;
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <parameter>hmac</parameter> is the type of the TSIG, default HMAC-MD5,
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <parameter>name</parameter> is the name of the TSIG key and
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <parameter>key</parameter> is the actual key. The key is a
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer base-64
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer encoded string, typically generated by
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence <citerefentry>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <refentrytitle>dnssec-keygen</refentrytitle><manvolnum>8</manvolnum>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer </citerefentry>.
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer Caution should be taken when using the <option>-y</option> option on
ee4429e13e08f30c366cdc5d10585388b8a9f212Michael Sawyer multi-user systems as the key can be visible in the output from
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson <citerefentry>
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson <refentrytitle>ps</refentrytitle><manvolnum>1</manvolnum>
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson </citerefentry>
ee4429e13e08f30c366cdc5d10585388b8a9f212Michael Sawyer or in the shell's history file. When
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson using TSIG authentication with <command>dig</command>, the name
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson server that is queried needs to know the key and algorithm that is
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson being used. In BIND, this is done by providing appropriate
ee4429e13e08f30c366cdc5d10585388b8a9f212Michael Sawyer <command>key</command> and <command>server</command> statements in
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson <filename>named.conf</filename>.
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson </para>
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson
ee4429e13e08f30c366cdc5d10585388b8a9f212Michael Sawyer </refsect1>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <refsect1>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <title>QUERY OPTIONS</title>
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson <para><command>dig</command>
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson provides a number of query options which affect
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson the way in which lookups are made and the results displayed. Some of
93988fb202645e5d06b337b8e3e20765a467149dAndreas Gustafsson these set or reset flag bits in the query header, some determine which
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer sections of the answer get printed, and others determine the timeout
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer and retry strategies.
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington </para>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <para>
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington Each query option is identified by a keyword preceded by a plus sign
e56101fa6876c876d9957c23784b6493cdb05e09Brian Wellington (<literal>+</literal>). Some keywords set or reset an
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence option. These may be preceded
368b37b616234fce3d23099eb180f1dd38e1fb62Mark Andrews by the string <literal>no</literal> to negate the meaning of
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer that keyword. Other
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer keywords assign values to options like the timeout interval. They
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer have the form <option>+keyword=value</option>.
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer The query options are:
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <variablelist>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <varlistentry>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <term><option>+[no]aaflag</option></term>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <listitem>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <para>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer A synonym for <parameter>+[no]aaonly</parameter>.
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer </para>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson </listitem>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson </varlistentry>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson <varlistentry>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson <term><option>+[no]aaonly</option></term>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson <listitem>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson <para>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson Sets the "aa" flag in the query.
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson </para>
f9521c63ea42fee93f7ae67512e4330ab13081c8Brian Wellington </listitem>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson </varlistentry>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson <varlistentry>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson <term><option>+[no]additional</option></term>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson <listitem>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <para>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer Display [do not display] the additional section of a
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson reply. The default is to display it.
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer </para>
37e6e0ca1337351642798b1a6aa24ae40bf86399Andreas Gustafsson </listitem>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson </varlistentry>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson
3f79a8b6f1b50f8e1bc2f274bcfe91d6af74f161Mark Andrews <varlistentry>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson <term><option>+[no]adflag</option></term>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson <listitem>
3291587f23b940c986f41cf37b2e531f618ec2bdMichael Sawyer <para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer Set [do not set] the AD (authentic data) bit in the
20b6f1e657d049d9fdb251a0846465bff9b95948Andreas Gustafsson query. This requests the server to return whether
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson all of the answer and authority sections have all
37e6e0ca1337351642798b1a6aa24ae40bf86399Andreas Gustafsson been validated as secure according to the security
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer policy of the server. AD=1 indicates that all records
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer have been validated as secure and the answer is not
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer from a OPT-OUT range. AD=0 indicate that some part
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer of the answer was insecure or not validated. This
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer bit is set by default.
37e6e0ca1337351642798b1a6aa24ae40bf86399Andreas Gustafsson </para>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer </listitem>
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence </varlistentry>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson <varlistentry>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson <term><option>+[no]all</option></term>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson <listitem>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson <para>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson Set or clear all display flags.
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson </para>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson </listitem>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson </varlistentry>
b4876b6ddf706977153954507b498baf79a23442Andreas Gustafsson
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <varlistentry>
7804502532d6e2eee80083431a22eb5d957f52a0Michael Sawyer <term><option>+[no]answer</option></term>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer <listitem>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer <para>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer Display [do not display] the answer section of a
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer reply. The default is to display it.
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer </para>
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence </listitem>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </varlistentry>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer
7804502532d6e2eee80083431a22eb5d957f52a0Michael Sawyer <varlistentry>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <term><option>+[no]authority</option></term>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <listitem>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <para>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer Display [do not display] the authority section of a
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer reply. The default is to display it.
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </para>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer </listitem>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer </varlistentry>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer
f900be21902d02418c2c71ffed754fb3f9f54cffMichael Sawyer <varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <term><option>+[no]besteffort</option></term>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <listitem>
ee4429e13e08f30c366cdc5d10585388b8a9f212Michael Sawyer <para>
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence Attempt to display the contents of messages which are
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer malformed. The default is to not display malformed
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer answers.
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </para>
46e349e515e0b992ecafdc9597f9d5ee0cf81b2aBrian Wellington </listitem>
46e349e515e0b992ecafdc9597f9d5ee0cf81b2aBrian Wellington </varlistentry>
53e7d12ab53e74650c00ea4c0d6568bf675d8b17Michael Sawyer
46e349e515e0b992ecafdc9597f9d5ee0cf81b2aBrian Wellington <varlistentry>
46e349e515e0b992ecafdc9597f9d5ee0cf81b2aBrian Wellington <term><option>+bufsize=B</option></term>
3f79a8b6f1b50f8e1bc2f274bcfe91d6af74f161Mark Andrews <listitem>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer <para>
844eaa56d6d647b38b2a5cf08f7ea5ab7b752690Michael Sawyer Set the UDP message buffer size advertised using EDNS0
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer to <parameter>B</parameter> bytes. The maximum and
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer minimum sizes of this buffer are 65535 and 0 respectively.
f900be21902d02418c2c71ffed754fb3f9f54cffMichael Sawyer Values outside this range are rounded up or down
f900be21902d02418c2c71ffed754fb3f9f54cffMichael Sawyer appropriately. Values other than zero will cause a
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson EDNS query to be sent.
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson </para>
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson </listitem>
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson </varlistentry>
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson <varlistentry>
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson <term><option>+[no]cdflag</option></term>
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson <listitem>
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson <para>
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson Set [do not set] the CD (checking disabled) bit in
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson the query. This requests the server to not perform
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson DNSSEC validation of responses.
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson </para>
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson </listitem>
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson </varlistentry>
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson <varlistentry>
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson <term><option>+[no]cl</option></term>
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson <listitem>
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson <para>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer Display [do not display] the CLASS when printing the
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer record.
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer </para>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer </listitem>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer </varlistentry>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <varlistentry>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <term><option>+[no]cmd</option></term>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <listitem>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <para>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer Toggles the printing of the initial comment in the
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer output identifying the version of <command>dig</command>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer and the query options that have been applied. This
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer comment is printed by default.
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer </para>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer </listitem>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer </varlistentry>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <varlistentry>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <term><option>+[no]comments</option></term>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <listitem>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <para>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer Toggle the display of comment lines in the output.
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer The default is to print comments.
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer </para>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer </listitem>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer </varlistentry>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer <varlistentry>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer <term><option>+[no]crypto</option></term>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer <listitem>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer <para>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer Toggle the display of cryptographic fields in DNSSEC
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer records. The contents of these field are unnecessary
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer to debug most DNSSEC validation failures and removing
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer them makes it easier to see the common failures. The
d7a2e0511222811b96f2e8757272ee383ec7b5e6Michael Sawyer default is to display the fields. When omitted they
d7a2e0511222811b96f2e8757272ee383ec7b5e6Michael Sawyer are replaced by the string "[omitted]" or in the
d7a2e0511222811b96f2e8757272ee383ec7b5e6Michael Sawyer DNSKEY case the key id is displayed as the replacement,
20b6f1e657d049d9fdb251a0846465bff9b95948Andreas Gustafsson e.g. "[ key id = value ]".
d7a2e0511222811b96f2e8757272ee383ec7b5e6Michael Sawyer </para>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson </listitem>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson </varlistentry>
1ae75c1024eb0475c2be352b8707772e16332ad0Mark Andrews
1ae75c1024eb0475c2be352b8707772e16332ad0Mark Andrews <varlistentry>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <term><option>+[no]defname</option></term>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <listitem>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <para>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson Deprecated, treated as a synonym for
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <parameter>+[no]search</parameter>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson </para>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson </listitem>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson </varlistentry>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <varlistentry>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <term><option>+[no]dnssec</option></term>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <listitem>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <para>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson Requests DNSSEC records be sent by setting the DNSSEC
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson OK bit (DO) in the OPT record in the additional section
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson of the query.
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson </para>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson </listitem>
8ef03ac2743f73f7ce3c92d739c64d31387abb45Danny Mayer </varlistentry>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <varlistentry>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <term><option>+domain=somename</option></term>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <listitem>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <para>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson Set the search list to contain the single domain
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <parameter>somename</parameter>, as if specified in
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson a <command>domain</command> directive in
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <filename>/etc/resolv.conf</filename>, and enable
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson search list processing as if the
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <parameter>+search</parameter> option were given.
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson </para>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson </listitem>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson </varlistentry>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <varlistentry>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <term><option>+dscp=value</option></term> <listitem>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <para>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer Set the DSCP code point to be used when sending the
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer query. Valid DSCP code points are in the range
32e783c745299f838dd7cf8ffe2032775a80f1d0Andreas Gustafsson [0..63]. By default no code point is explicitly set.
f900be21902d02418c2c71ffed754fb3f9f54cffMichael Sawyer </para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </listitem>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer </varlistentry>
20b6f1e657d049d9fdb251a0846465bff9b95948Andreas Gustafsson
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <varlistentry>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer <term><option>+[no]edns[=#]</option></term>
20b6f1e657d049d9fdb251a0846465bff9b95948Andreas Gustafsson <listitem>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <para>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer Specify the EDNS version to query with. Valid values
20b6f1e657d049d9fdb251a0846465bff9b95948Andreas Gustafsson are 0 to 255. Setting the EDNS version will cause
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer a EDNS query to be sent. <option>+noedns</option>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer clears the remembered EDNS version. EDNS is set to
20b6f1e657d049d9fdb251a0846465bff9b95948Andreas Gustafsson 0 by default.
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </para>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer </listitem>
20b6f1e657d049d9fdb251a0846465bff9b95948Andreas Gustafsson </varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer <varlistentry>
20b6f1e657d049d9fdb251a0846465bff9b95948Andreas Gustafsson <term><option>+[no]ednsflags[=#]</option></term>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <listitem>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer <para>
20b6f1e657d049d9fdb251a0846465bff9b95948Andreas Gustafsson Set the must-be-zero EDNS flags bits (Z bits) to the
7f20fd8ebb0cabc8f935381d958f8371990c9212Mark Andrews specified value. Decimal, hex and octal encodings are
7f20fd8ebb0cabc8f935381d958f8371990c9212Mark Andrews accepted. Setting a named flag (e.g. DO) will silently be
7f20fd8ebb0cabc8f935381d958f8371990c9212Mark Andrews ignored. By default, no Z bits are set.
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </para>
20b6f1e657d049d9fdb251a0846465bff9b95948Andreas Gustafsson </listitem>
20b6f1e657d049d9fdb251a0846465bff9b95948Andreas Gustafsson </varlistentry>
8e61de2efdc23d1248cff0abf4cadec3325a929cMichael Sawyer
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <varlistentry>
20b6f1e657d049d9fdb251a0846465bff9b95948Andreas Gustafsson <term><option>+[no]ednsnegotiation</option></term>
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson <listitem>
8e61de2efdc23d1248cff0abf4cadec3325a929cMichael Sawyer <para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer Enable / disable EDNS version negotiation. By default
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson EDNS version negotiation is enabled.
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </para>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson </listitem>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </varlistentry>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <varlistentry>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson <term><option>+[no]ednsopt[=code[:value]]</option></term>
ee4429e13e08f30c366cdc5d10585388b8a9f212Michael Sawyer <listitem>
ee4429e13e08f30c366cdc5d10585388b8a9f212Michael Sawyer <para>
ee4429e13e08f30c366cdc5d10585388b8a9f212Michael Sawyer Specify EDNS option with code point <option>code</option>
ee4429e13e08f30c366cdc5d10585388b8a9f212Michael Sawyer and optionally payload of <option>value</option> as a
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer hexadecimal string. <option>+noednsopt</option>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson clears the EDNS options to be sent.
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </para>
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson </listitem>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </varlistentry>
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <varlistentry>
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson <term><option>+[no]expire</option></term>
8e61de2efdc23d1248cff0abf4cadec3325a929cMichael Sawyer <listitem>
8e61de2efdc23d1248cff0abf4cadec3325a929cMichael Sawyer <para>
8e61de2efdc23d1248cff0abf4cadec3325a929cMichael Sawyer Send an EDNS Expire option.
8e61de2efdc23d1248cff0abf4cadec3325a929cMichael Sawyer </para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </listitem>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <varlistentry>
d821f1cd7e97552401296e880e7518c98c9ebea1Michael Sawyer <term><option>+[no]fail</option></term>
d821f1cd7e97552401296e880e7518c98c9ebea1Michael Sawyer <listitem>
d821f1cd7e97552401296e880e7518c98c9ebea1Michael Sawyer <para>
d821f1cd7e97552401296e880e7518c98c9ebea1Michael Sawyer Do not try the next server if you receive a SERVFAIL.
9a762177e6a0aff3ea5c00f87568c8ae3cd0e6c7Andreas Gustafsson The default is to not try the next server which is
aa2c453d3c6e416b56b29247bedd9a0af2721e93Mark Andrews the reverse of normal stub resolver behavior.
9a762177e6a0aff3ea5c00f87568c8ae3cd0e6c7Andreas Gustafsson </para>
aa2c453d3c6e416b56b29247bedd9a0af2721e93Mark Andrews </listitem>
9a762177e6a0aff3ea5c00f87568c8ae3cd0e6c7Andreas Gustafsson </varlistentry>
fb2c34419d268d36acb222e08e6f789b45a81306Mark Andrews
3d711f2f75cb9a9ddcbf1fca9b2de192e75340e6Mark Andrews <varlistentry>
3d711f2f75cb9a9ddcbf1fca9b2de192e75340e6Mark Andrews <term><option>+[no]header-only</option></term>
3d711f2f75cb9a9ddcbf1fca9b2de192e75340e6Mark Andrews <listitem>
3d711f2f75cb9a9ddcbf1fca9b2de192e75340e6Mark Andrews <para>
48674819ebf9176b5d5582ae851e485c324c1159Michael Sawyer Send a query with a DNS header without a question section.
1416cae3f614faf4067e8b5a6b4732e132958bbaAndreas Gustafsson The default is to add a question section. The query type
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer and query name are ignored when this is set.
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer </para>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer </listitem>
869f65bea49f8d65ab9bb14c4551215529bd7419David Lawrence </varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <varlistentry>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <term><option>+[no]identify</option></term>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <listitem>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <para>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer Show [or do not show] the IP address and port number
5d20773abcdf9ff3afe14a349413174f94594188Michael Sawyer that supplied the answer when the
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <parameter>+short</parameter> option is enabled. If
37e6e0ca1337351642798b1a6aa24ae40bf86399Andreas Gustafsson short form answers are requested, the default is not
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer to show the source address and port number of the
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer server that provided the answer.
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer </para>
3291587f23b940c986f41cf37b2e531f618ec2bdMichael Sawyer </listitem>
32e783c745299f838dd7cf8ffe2032775a80f1d0Andreas Gustafsson </varlistentry>
3291587f23b940c986f41cf37b2e531f618ec2bdMichael Sawyer
3291587f23b940c986f41cf37b2e531f618ec2bdMichael Sawyer <varlistentry>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <term><option>+[no]ignore</option></term>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <listitem>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer <para>
3291587f23b940c986f41cf37b2e531f618ec2bdMichael Sawyer Ignore truncation in UDP responses instead of retrying
32e783c745299f838dd7cf8ffe2032775a80f1d0Andreas Gustafsson with TCP. By default, TCP retries are performed.
3291587f23b940c986f41cf37b2e531f618ec2bdMichael Sawyer </para>
3291587f23b940c986f41cf37b2e531f618ec2bdMichael Sawyer </listitem>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer </varlistentry>
974f1d7b49442d65542ad3517dbd61146ee3b653Mark Andrews
1ae75c1024eb0475c2be352b8707772e16332ad0Mark Andrews <varlistentry>
5d20773abcdf9ff3afe14a349413174f94594188Michael Sawyer <term><option>+[no]keepopen</option></term>
55bf97a1b4b7f78b669b1179df1422cb9789c484Michael Sawyer <listitem>
cc7732e1299042bff430dfdfbc2624fb340047b2Michael Sawyer <para>
55bf97a1b4b7f78b669b1179df1422cb9789c484Michael Sawyer Keep the TCP socket open between queries and reuse
5d20773abcdf9ff3afe14a349413174f94594188Michael Sawyer it rather than creating a new TCP socket for each
55bf97a1b4b7f78b669b1179df1422cb9789c484Michael Sawyer lookup. The default is <option>+nokeepopen</option>.
cc7732e1299042bff430dfdfbc2624fb340047b2Michael Sawyer </para>
55bf97a1b4b7f78b669b1179df1422cb9789c484Michael Sawyer </listitem>
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer </varlistentry>
cc7732e1299042bff430dfdfbc2624fb340047b2Michael Sawyer
1d78c8d7cd619df2255ec52d69b0dd0d8850293fBrian Wellington <varlistentry>
1d78c8d7cd619df2255ec52d69b0dd0d8850293fBrian Wellington <term><option>+[no]multiline</option></term>
1d78c8d7cd619df2255ec52d69b0dd0d8850293fBrian Wellington <listitem>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer Print records like the SOA records in a verbose
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer multi-line format with human-readable comments. The
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer default is to print each record on a single line, to
0e0e575ec135a983a53c501cf48734b823361ab4Brian Wellington facilitate machine parsing of the <command>dig</command>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer output.
9fe3676b8490319aa65182f2072cbf5086097979Michael Sawyer </para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </listitem>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <term><option>+ndots=D</option></term>
17747cd5ee98901b435cd2b3019c52937955a981Michael Sawyer <listitem>
3d711f2f75cb9a9ddcbf1fca9b2de192e75340e6Mark Andrews <para>
3d711f2f75cb9a9ddcbf1fca9b2de192e75340e6Mark Andrews Set the number of dots that have to appear in
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <parameter>name</parameter> to <parameter>D</parameter>
8e61de2efdc23d1248cff0abf4cadec3325a929cMichael Sawyer for it to be considered absolute. The default value
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer is that defined using the ndots statement in
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <filename>/etc/resolv.conf</filename>, or 1 if no
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer ndots statement is present. Names with fewer dots
38cf6e52ce4b33795713388824b69d78e430b115Michael Sawyer are interpreted as relative names and will be searched
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer for in the domains listed in the <option>search</option>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer or <option>domain</option> directive in
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <filename>/etc/resolv.conf</filename> if
cd720113a2fc8a781d4e33350b8a2b62857b31d8David Lawrence <option>+search</option> is set.
07a926724c0a91d85b85a94441938d0094e88cffMark Andrews </para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </listitem>
07a926724c0a91d85b85a94441938d0094e88cffMark Andrews </varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
e6c95fe56b0491b533f2ca5a3ed8e8e9f74f4fd2Mark Andrews <varlistentry>
07a926724c0a91d85b85a94441938d0094e88cffMark Andrews <term><option>+[no]nsid</option></term>
07a926724c0a91d85b85a94441938d0094e88cffMark Andrews <listitem>
20b6f1e657d049d9fdb251a0846465bff9b95948Andreas Gustafsson <para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer Include an EDNS name server ID request when sending
427f933eceba2dd1022fa3b680ca1bd08cbce990Brian Wellington a query.
07a926724c0a91d85b85a94441938d0094e88cffMark Andrews </para>
427f933eceba2dd1022fa3b680ca1bd08cbce990Brian Wellington </listitem>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
07a926724c0a91d85b85a94441938d0094e88cffMark Andrews <varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <term><option>+[no]nssearch</option></term>
07a926724c0a91d85b85a94441938d0094e88cffMark Andrews <listitem>
e412ae947df6de858883564b8676a9650df70d9aMark Andrews <para>
5f01e77fc23fe9665fa2b8acd0a0c5bfbf61d61dBrian Wellington When this option is set, <command>dig</command>
07a926724c0a91d85b85a94441938d0094e88cffMark Andrews attempts to find the authoritative name servers for
e412ae947df6de858883564b8676a9650df70d9aMark Andrews the zone containing the name being looked up and
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer display the SOA record that each name server has for
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer the zone.
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </para>
f900be21902d02418c2c71ffed754fb3f9f54cffMichael Sawyer </listitem>
f900be21902d02418c2c71ffed754fb3f9f54cffMichael Sawyer </varlistentry>
3f79a8b6f1b50f8e1bc2f274bcfe91d6af74f161Mark Andrews
b31e7ab8857a62eb94d4a6a681243739f158374dDanny Mayer <varlistentry>
3f79a8b6f1b50f8e1bc2f274bcfe91d6af74f161Mark Andrews <term><option>+[no]onesoa</option></term>
f900be21902d02418c2c71ffed754fb3f9f54cffMichael Sawyer <listitem>
6e3a8e17fdf108f47bbba17474fd3d120d356b2fBrian Wellington <para>
6e3a8e17fdf108f47bbba17474fd3d120d356b2fBrian Wellington Print only one (starting) SOA record when performing
07a926724c0a91d85b85a94441938d0094e88cffMark Andrews an AXFR. The default is to print both the starting
5f01e77fc23fe9665fa2b8acd0a0c5bfbf61d61dBrian Wellington and ending SOA records.
1ae75c1024eb0475c2be352b8707772e16332ad0Mark Andrews </para>
5f01e77fc23fe9665fa2b8acd0a0c5bfbf61d61dBrian Wellington </listitem>
07a926724c0a91d85b85a94441938d0094e88cffMark Andrews </varlistentry>
5f01e77fc23fe9665fa2b8acd0a0c5bfbf61d61dBrian Wellington
5f01e77fc23fe9665fa2b8acd0a0c5bfbf61d61dBrian Wellington <varlistentry>
5f01e77fc23fe9665fa2b8acd0a0c5bfbf61d61dBrian Wellington <term><option>+[no]qr</option></term>
1ae75c1024eb0475c2be352b8707772e16332ad0Mark Andrews <listitem>
5f01e77fc23fe9665fa2b8acd0a0c5bfbf61d61dBrian Wellington <para>
07a926724c0a91d85b85a94441938d0094e88cffMark Andrews Print [do not print] the query as it is sent. By
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence default, the query is not printed.
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </para>
07a926724c0a91d85b85a94441938d0094e88cffMark Andrews </listitem>
07a926724c0a91d85b85a94441938d0094e88cffMark Andrews </varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <term><option>+[no]question</option></term>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <listitem>
19c8df90f1f23c3df870c1771c89c1acdb15020eMichael Sawyer <para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer Print [do not print] the question section of a query
66921d6dd259c4486a07aba19eee2b8349698575Brian Wellington when an answer is returned. The default is to print
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer the question section as a comment.
37e6e0ca1337351642798b1a6aa24ae40bf86399Andreas Gustafsson </para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </listitem>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
19c8df90f1f23c3df870c1771c89c1acdb15020eMichael Sawyer <varlistentry>
19c8df90f1f23c3df870c1771c89c1acdb15020eMichael Sawyer <term><option>+[no]recurse</option></term>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <listitem>
19c8df90f1f23c3df870c1771c89c1acdb15020eMichael Sawyer <para>
19c8df90f1f23c3df870c1771c89c1acdb15020eMichael Sawyer Toggle the setting of the RD (recursion desired) bit
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer in the query. This bit is set by default, which means
869f65bea49f8d65ab9bb14c4551215529bd7419David Lawrence <command>dig</command> normally sends recursive
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer queries. Recursion is automatically disabled when
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer the <parameter>+nssearch</parameter> or
b31e7ab8857a62eb94d4a6a681243739f158374dDanny Mayer <parameter>+trace</parameter> query options are used.
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </listitem>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <term><option>+retry=T</option></term>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <listitem>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer Sets the number of times to retry UDP queries to
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer server to <parameter>T</parameter> instead of the
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer default, 2. Unlike <parameter>+tries</parameter>,
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer this does not include the initial query.
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </listitem>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <term><option>+[no]rrcomments</option></term>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <listitem>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer Toggle the display of per-record comments in the
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer output (for example, human-readable key information
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer about DNSKEY records). The default is not to print
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer record comments unless multiline mode is active.
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </listitem>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <term><option>+[no]search</option></term>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <listitem>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer Use [do not use] the search list defined by the
e715e011788a529446b8013239c33599542ece32Michael Sawyer searchlist or domain directive in
e715e011788a529446b8013239c33599542ece32Michael Sawyer <filename>resolv.conf</filename> (if any). The search
e715e011788a529446b8013239c33599542ece32Michael Sawyer list is not used by default.
e715e011788a529446b8013239c33599542ece32Michael Sawyer </para>
e715e011788a529446b8013239c33599542ece32Michael Sawyer <para>
e715e011788a529446b8013239c33599542ece32Michael Sawyer 'ndots' from <filename>resolv.conf</filename> (default 1)
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence which may be overridden by <parameter>+ndots</parameter>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer determines if the name will be treated as relative
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer or not and hence whether a search is eventually
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer performed or not.
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </listitem>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer </varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <varlistentry>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <term><option>+[no]short</option></term>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer <listitem>
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence <para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer Provide a terse answer. The default is to print the
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington answer in a verbose form.
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington </para>
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington </listitem>
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington </varlistentry>
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer <varlistentry>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer <term><option>+[no]showsearch</option></term>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer <listitem>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer <para>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer Perform [do not perform] a search showing intermediate
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer results.
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer </para>
e42c402595802edceafbd3e5338dda011fbbcdb6Michael Sawyer </listitem>
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington </varlistentry>
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <varlistentry>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <term><option>+[no]sigchase</option></term>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <listitem>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <para>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer Chase DNSSEC signature chains. Requires dig be
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer compiled with -DDIG_SIGCHASE.
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer </para>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer </listitem>
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington </varlistentry>
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington <varlistentry>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <term><option>+[no]sit<optional>=####</optional></option></term>
38cf6e52ce4b33795713388824b69d78e430b115Michael Sawyer <listitem>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <para>
6fe03d6c83ec02d4494edc870f5e892d419b6885Michael Sawyer Send a Source Identity Token EDNS option, with optional
f8fec75ee8f429821137aee090f56ab678404a56Michael Sawyer value. Replaying a SIT from a previous response will
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer allow the server to identify a previous client. The
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson default is <option>+nosit</option>. Currently using
688a4c50c2025a683d8d2bf5bb53a591556df4fcAndreas Gustafsson experimental value 65001 for the option code.
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington </para>
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington </listitem>
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington </varlistentry>
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington <varlistentry>
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington <term><option>+split=W</option></term>
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington <listitem>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer <para>
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington Split long hex- or base64-formatted fields in resource
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer records into chunks of <parameter>W</parameter>
37e6e0ca1337351642798b1a6aa24ae40bf86399Andreas Gustafsson characters (where <parameter>W</parameter> is rounded
37e6e0ca1337351642798b1a6aa24ae40bf86399Andreas Gustafsson up to the nearest multiple of 4).
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington <parameter>+nosplit</parameter> or
b266f8fc42702debc6bd89365273223fa89cd8ddBrian Wellington <parameter>+split=0</parameter> causes fields not to
bc223aaf8e952f3c88ac7ff82d726b328b990880Michael Sawyer be split at all. The default is 56 characters, or
aa6054ec74819f754bcf19442ca9b39d948171adMichael Sawyer 44 characters when multiline mode is active.
db8b100cae62de849ecf4ba9ad3be811fb375b53Michael Sawyer </para>
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence </listitem>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer </varlistentry>
cefd68008fbba3488a077052ae62aa12b6de502bMichael Sawyer
<varlistentry>
<term><option>+[no]stats</option></term>
<listitem>
<para>
This query option toggles the printing of statistics:
when the query was made, the size of the reply and
so on. The default behavior is to print the query
statistics.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>+[no]subnet=addr/prefix</option></term>
<listitem>
<para>
Send an EDNS Client Subnet option with the specified
IP address or network prefix.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>+[no]tcp</option></term>
<listitem>
<para>
Use [do not use] TCP when querying name servers. The
default behavior is to use UDP unless an
<literal>ixfr=N</literal> query is requested, in which
case the default is TCP. AXFR queries always use
TCP.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>+time=T</option></term>
<listitem>
<para>
Sets the timeout for a query to
<parameter>T</parameter> seconds. The default
timeout is 5 seconds.
An attempt to set <parameter>T</parameter> to less
than 1 will result
in a query timeout of 1 second being applied.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>+[no]topdown</option></term>
<listitem>
<para>
When chasing DNSSEC signature chains perform a top-down
validation. Requires dig be compiled with -DDIG_SIGCHASE.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>+[no]trace</option></term>
<listitem>
<para>
Toggle tracing of the delegation path from the root
name servers for the name being looked up. Tracing
is disabled by default. When tracing is enabled,
<command>dig</command> makes iterative queries to
resolve the name being looked up. It will follow
referrals from the root servers, showing the answer
from each server that was used to resolve the lookup.
</para> <para>
<command>+dnssec</command> is also set when +trace
is set to better emulate the default queries from a
nameserver.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>+tries=T</option></term>
<listitem>
<para>
Sets the number of times to try UDP queries to server
to <parameter>T</parameter> instead of the default,
3. If <parameter>T</parameter> is less than or equal
to zero, the number of tries is silently rounded up
to 1.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>+trusted-key=####</option></term>
<listitem>
<para>
Specifies a file containing trusted keys to be used
with <option>+sigchase</option>. Each DNSKEY record
must be on its own line.
</para> <para>
If not specified, <command>dig</command> will look
for <filename>/etc/trusted-key.key</filename> then
<filename>trusted-key.key</filename> in the current
directory.
</para> <para>
Requires dig be compiled with -DDIG_SIGCHASE.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>+[no]ttlid</option></term>
<listitem>
<para>
Display [do not display] the TTL when printing the
record.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>+[no]ttlunits</option></term>
<listitem>
<para>
Display [do not display] the TTL in friendly human-readable
time units of "s", "m", "h", "d", and "w", representing
seconds, minutes, hours, days and weeks. Implies +ttlid.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>+[no]vc</option></term>
<listitem>
<para>
Use [do not use] TCP when querying name servers. This
alternate syntax to <parameter>+[no]tcp</parameter>
is provided for backwards compatibility. The "vc"
stands for "virtual circuit".
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1>
<title>MULTIPLE QUERIES</title>
<para>
The BIND 9 implementation of <command>dig </command>
supports
specifying multiple queries on the command line (in addition to
supporting the <option>-f</option> batch file option). Each of those
queries can be supplied with its own set of flags, options and query
options.
</para>
<para>
In this case, each <parameter>query</parameter> argument
represent an
individual query in the command-line syntax described above. Each
consists of any of the standard options and flags, the name to be
looked up, an optional query type and class and any query options that
should be applied to that query.
</para>
<para>
A global set of query options, which should be applied to all queries,
can also be supplied. These global query options must precede the
first tuple of name, class, type, options, flags, and query options
supplied on the command line. Any global query options (except
the <option>+[no]cmd</option> option) can be
overridden by a query-specific set of query options. For example:
<programlisting>
dig +qr www.isc.org any -x 127.0.0.1 isc.org ns +noqr
</programlisting>
shows how <command>dig</command> could be used from the
command line
to make three lookups: an ANY query for <literal>www.isc.org</literal>, a
reverse lookup of 127.0.0.1 and a query for the NS records of
<literal>isc.org</literal>.
A global query option of <parameter>+qr</parameter> is
applied, so
that <command>dig</command> shows the initial query it made
for each
lookup. The final query has a local query option of
<parameter>+noqr</parameter> which means that <command>dig</command>
will not print the initial query when it looks up the NS records for
<literal>isc.org</literal>.
</para>
</refsect1>
<refsect1>
<title>IDN SUPPORT</title>
<para>
If <command>dig</command> has been built with IDN (internationalized
domain name) support, it can accept and display non-ASCII domain names.
<command>dig</command> appropriately converts character encoding of
domain name before sending a request to DNS server or displaying a
reply from the server.
If you'd like to turn off the IDN support for some reason, defines
the <envar>IDN_DISABLE</envar> environment variable.
The IDN support is disabled if the variable is set when
<command>dig</command> runs.
</para>
</refsect1>
<refsect1>
<title>FILES</title>
<para><filename>/etc/resolv.conf</filename>
</para>
<para><filename>${HOME}/.digrc</filename>
</para>
</refsect1>
<refsect1>
<title>SEE ALSO</title>
<para><citerefentry>
<refentrytitle>host</refentrytitle><manvolnum>1</manvolnum>
</citerefentry>,
<citerefentry>
<refentrytitle>named</refentrytitle><manvolnum>8</manvolnum>
</citerefentry>,
<citerefentry>
<refentrytitle>dnssec-keygen</refentrytitle><manvolnum>8</manvolnum>
</citerefentry>,
<citetitle>RFC1035</citetitle>.
</para>
</refsect1>
<refsect1>
<title>BUGS</title>
<para>
There are probably too many query options.
</para>
</refsect1>
</refentry><!--
- Local variables:
- mode: sgml
- End:
-->