dig.docbook revision d1c18780d3abe9e77e7098360f060288a6767ab0
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim<!ENTITY mdash "—">]>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim - Copyright (C) 2000-2011, 2013-2017 Internet Systems Consortium, Inc. ("ISC")
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim - This Source Code Form is subject to the terms of the Mozilla Public
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim - License, v. 2.0. If a copy of the MPL was not distributed with this
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim - file, You can obtain one at http://mozilla.org/MPL/2.0/.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim<!-- Converted by db4-upgrade version 1.0 -->
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim<refentry xmlns:db="http://docbook.org/ns/docbook" version="5.0" xml:id="man.dig">
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <refentryinfo>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </refentryinfo>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <refnamediv>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </refnamediv>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <copyright>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </copyright>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <refsynopsisdiv>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <arg choice="opt" rep="norepeat"><option>-b <replaceable class="parameter">address</replaceable></option></arg>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <arg choice="opt" rep="norepeat"><option>-c <replaceable class="parameter">class</replaceable></option></arg>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <arg choice="opt" rep="norepeat"><option>-f <replaceable class="parameter">filename</replaceable></option></arg>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <arg choice="opt" rep="norepeat"><option>-k <replaceable class="parameter">filename</replaceable></option></arg>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <arg choice="opt" rep="norepeat"><option>-m</option></arg>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <arg choice="opt" rep="norepeat"><option>-p <replaceable class="parameter">port#</replaceable></option></arg>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <arg choice="opt" rep="norepeat"><option>-q <replaceable class="parameter">name</replaceable></option></arg>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <arg choice="opt" rep="norepeat"><option>-t <replaceable class="parameter">type</replaceable></option></arg>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <arg choice="opt" rep="norepeat"><option>-v</option></arg>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <arg choice="opt" rep="norepeat"><option>-x <replaceable class="parameter">addr</replaceable></option></arg>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <arg choice="opt" rep="norepeat"><option>-y <replaceable class="parameter"><optional>hmac:</optional>name:key</replaceable></option></arg>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <arg choice="opt" rep="norepeat"><option>-4</option></arg>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <arg choice="opt" rep="norepeat"><option>-6</option></arg>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </cmdsynopsis>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <arg choice="opt" rep="norepeat"><option>-h</option></arg>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </cmdsynopsis>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <arg choice="opt" rep="repeat">global-queryopt</arg>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </cmdsynopsis>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </refsynopsisdiv>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <refsection><info><title>DESCRIPTION</title></info>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim for interrogating DNS name servers. It performs DNS lookups and
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim displays the answers that are returned from the name server(s) that
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim were queried. Most DNS administrators use <command>dig</command> to
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim troubleshoot DNS problems because of its flexibility, ease of use and
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim clarity of output. Other lookup tools tend to have less functionality
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim Although <command>dig</command> is normally used with
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim command-line
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim arguments, it also has a batch mode of operation for reading lookup
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim requests from a file. A brief summary of its command-line arguments
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim and options is printed when the <option>-h</option> option is given.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim Unlike earlier versions, the BIND 9 implementation of
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <command>dig</command> allows multiple lookups to be issued
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim command line.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim Unless it is told to query a specific name server,
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <command>dig</command> will try each of the servers listed in
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <filename>/etc/resolv.conf</filename>. If no usable server addresses
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim are found, <command>dig</command> will send the query to the local
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim When no command line arguments or options are given,
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <command>dig</command> will perform an NS query for "." (the root).
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim It is possible to set per-user defaults for <command>dig</command> via
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <filename>${HOME}/.digrc</filename>. This file is read and
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim any options in it
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim are applied before the command line arguments.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim The IN and CH class names overlap with the IN and CH top level
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim domain names. Either use the <option>-t</option> and
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <option>-c</option> options to specify the type and class,
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim use the <option>-q</option> the specify the domain name, or
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim use "IN." and "CH." when looking up these top level domains.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </refsection>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <refsection><info><title>SIMPLE USAGE</title></info>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim A typical invocation of <command>dig</command> looks like:
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <programlisting> dig @server name type </programlisting>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <variablelist>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim is the name or IP address of the name server to query. This
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim can be an IPv4 address in dotted-decimal notation or an IPv6
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim address in colon-delimited notation. When the supplied
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <parameter>server</parameter> argument is a hostname,
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <command>dig</command> resolves that name before querying
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim that name server.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim address is found there, it queries the name server at
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim that address. If either of the <option>-4</option> or
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim only addresses for the corresponding transport
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim will be tried. If no usable addresses are found,
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim local host. The reply from the name server that
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim responds is displayed.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </listitem>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim is the name of the resource record that is to be looked up.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </listitem>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim indicates what type of query is required —
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim ANY, A, MX, SIG, etc.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim type. If no
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <command>dig</command> will perform a lookup for an
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </listitem>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </variablelist>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </refsection>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <variablelist>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim Use IPv4 only.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </listitem>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim Use IPv6 only.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </listitem>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <term>-b <replaceable class="parameter">address<optional>#port</optional></replaceable></term>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim Set the source IP address of the query.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim The <parameter>address</parameter> must be a valid address on
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim one of the host's network interfaces, or "0.0.0.0" or "::". An
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim optional port may be specified by appending "#<port>"
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </listitem>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <term>-c <replaceable class="parameter">class</replaceable></term>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim Set the query class. The
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim default <parameter>class</parameter> is IN; other classes
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim are HS for Hesiod records or CH for Chaosnet records.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </listitem>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <term>-f <replaceable class="parameter">file</replaceable></term>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim Batch mode: <command>dig</command> reads a list of lookup
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim requests to process from the
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim given <parameter>file</parameter>. Each line in the file
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim should be organized in the same way they would be
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim presented as queries to
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <command>dig</command> using the command-line interface.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </listitem>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim Do reverse IPv6 lookups using the obsolete RFC1886 IP6.INT
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim domain, which is no longer in use. Obsolete bit string
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim label queries (RFC2874) are not attempted.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </listitem>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <term>-k <replaceable class="parameter">keyfile</replaceable></term>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim Sign queries using TSIG using a key read from the given file.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim Key files can be generated using
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <citerefentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <refentrytitle>tsig-keygen</refentrytitle><manvolnum>8</manvolnum>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </citerefentry>.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim When using TSIG authentication with <command>dig</command>,
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim the name server that is queried needs to know the key and
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim algorithm that is being used. In BIND, this is done by
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </listitem>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim Enable memory usage debugging.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <!-- It enables ISC_MEM_DEBUGTRACE and ISC_MEM_DEBUGRECORD
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim documented in include/isc/mem.h -->
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </listitem>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <term>-p <replaceable class="parameter">port</replaceable></term>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim Send the query to a non-standard port on the server,
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim instead of the default port 53. This option would be used
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim to test a name server that has been configured to listen
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim for queries on a non-standard port number.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </listitem>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <term>-q <replaceable class="parameter">name</replaceable></term>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim The domain name to query. This is useful to distinguish
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim the <parameter>name</parameter> from other arguments.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </listitem>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <term>-t <replaceable class="parameter">type</replaceable></term>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim The resource record type to query. It can be any valid query type
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim supported in BIND 9. The default query type is "A", unless the
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <option>-x</option> option is supplied to indicate a reverse lookup.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim A zone transfer can be requested by specifying a type of AXFR. When
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim an incremental zone transfer (IXFR) is required, set the
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <parameter>type</parameter> to <literal>ixfr=N</literal>.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim The incremental zone transfer will contain the changes
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim made to the zone since the serial number in the zone's SOA
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </listitem>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim Print the version number and exit.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </listitem>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <term>-x <replaceable class="parameter">addr</replaceable></term>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim Simplified reverse lookups, for mapping addresses to
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim names. The <parameter>addr</parameter> is an IPv4 address
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim in dotted-decimal notation, or a colon-delimited IPv6
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim address. When the <option>-x</option> is used, there is no
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim need to provide
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim the <parameter>name</parameter>, <parameter>class</parameter>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim arguments. <command>dig</command> automatically performs a
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim lookup for a name like
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <literal>94.2.0.192.in-addr.arpa</literal> and sets the
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim query type and class to PTR and IN respectively. IPv6
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim addresses are looked up using nibble format under the
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim IP6.ARPA domain (but see also the <option>-i</option>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </listitem>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <term>-y <replaceable class="parameter"><optional>hmac:</optional>keyname:secret</replaceable></term>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim Sign queries using TSIG with the given authentication key.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <parameter>keyname</parameter> is the name of the key, and
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <parameter>secret</parameter> is the base64 encoded shared secret.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <parameter>hmac</parameter> is the name of the key algorithm;
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <literal>hmac-sha1</literal>, <literal>hmac-sha224</literal>,
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <literal>hmac-sha256</literal>, <literal>hmac-sha384</literal>, or
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <literal>hmac-sha512</literal>. If <parameter>hmac</parameter>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim is not specified, the default is <literal>hmac-md5</literal>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim or if MD5 was disabled <literal>hmac-sha256</literal>.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim NOTE: You should use the <option>-k</option> option and
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim with <option>-y</option> the shared secret is supplied as
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim a command line argument in clear text. This may be visible
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim in the output from
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <citerefentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <refentrytitle>ps</refentrytitle><manvolnum>1</manvolnum>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </citerefentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim or in a history file maintained by the user's shell.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </listitem>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </varlistentry>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </variablelist>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim </refsection>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim <refsection><info><title>QUERY OPTIONS</title></info>
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim provides a number of query options which affect
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim the way in which lookups are made and the results displayed. Some of
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim these set or reset flag bits in the query header, some determine which
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim sections of the answer get printed, and others determine the timeout
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim and retry strategies.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim Each query option is identified by a keyword preceded by a plus sign
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim (<literal>+</literal>). Some keywords set or reset an
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim option. These may be preceded
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim by the string <literal>no</literal> to negate the meaning of
e.g. "[ key id = value ]".
accepted. Setting a named flag (e.g. DO) will silently be