]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - contrib/bind9/bin/dig/dig.docbook
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / contrib / bind9 / bin / dig / dig.docbook
1 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
2                "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
3                [<!ENTITY mdash "&#8212;">]>
4 <!--
5  - Copyright (C) 2004-2008  Internet Systems Consortium, Inc. ("ISC")
6  - Copyright (C) 2000-2003  Internet Software Consortium.
7  -
8  - Permission to use, copy, modify, and/or distribute this software for any
9  - purpose with or without fee is hereby granted, provided that the above
10  - copyright notice and this permission notice appear in all copies.
11  -
12  - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
13  - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14  - AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
15  - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16  - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
17  - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18  - PERFORMANCE OF THIS SOFTWARE.
19 -->
20
21 <!-- $Id: dig.docbook,v 1.17.18.24 2008/10/14 00:54:40 marka Exp $ -->
22 <refentry id="man.dig">
23
24   <refentryinfo>
25     <date>Jun 30, 2000</date>
26   </refentryinfo>
27
28   <refmeta>
29     <refentrytitle>dig</refentrytitle>
30     <manvolnum>1</manvolnum>
31     <refmiscinfo>BIND9</refmiscinfo>
32   </refmeta>
33
34   <refnamediv>
35     <refname>dig</refname>
36     <refpurpose>DNS lookup utility</refpurpose>
37   </refnamediv>
38
39   <docinfo>
40     <copyright>
41       <year>2004</year>
42       <year>2005</year>
43       <year>2006</year>
44       <year>2007</year>
45       <year>2008</year>
46       <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
47     </copyright>
48     <copyright>
49       <year>2000</year>
50       <year>2001</year>
51       <year>2002</year>
52       <year>2003</year>
53       <holder>Internet Software Consortium.</holder>
54     </copyright>
55   </docinfo>
56
57   <refsynopsisdiv>
58     <cmdsynopsis>
59       <command>dig</command>
60       <arg choice="opt">@server</arg>
61       <arg><option>-b <replaceable class="parameter">address</replaceable></option></arg>
62       <arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
63       <arg><option>-f <replaceable class="parameter">filename</replaceable></option></arg>
64       <arg><option>-k <replaceable class="parameter">filename</replaceable></option></arg>
65       <arg><option>-m</option></arg>
66       <arg><option>-p <replaceable class="parameter">port#</replaceable></option></arg>
67       <arg><option>-q <replaceable class="parameter">name</replaceable></option></arg>
68       <arg><option>-t <replaceable class="parameter">type</replaceable></option></arg>
69       <arg><option>-x <replaceable class="parameter">addr</replaceable></option></arg>
70       <arg><option>-y <replaceable class="parameter"><optional>hmac:</optional>name:key</replaceable></option></arg>
71       <arg><option>-4</option></arg>
72       <arg><option>-6</option></arg>
73       <arg choice="opt">name</arg>
74       <arg choice="opt">type</arg>
75       <arg choice="opt">class</arg>
76       <arg choice="opt" rep="repeat">queryopt</arg>
77     </cmdsynopsis>
78
79     <cmdsynopsis>
80       <command>dig</command>
81       <arg><option>-h</option></arg>
82     </cmdsynopsis>
83
84     <cmdsynopsis>
85       <command>dig</command>
86       <arg choice="opt" rep="repeat">global-queryopt</arg>
87       <arg choice="opt" rep="repeat">query</arg>
88     </cmdsynopsis>
89   </refsynopsisdiv>
90
91   <refsect1>
92     <title>DESCRIPTION</title>
93     <para><command>dig</command>
94       (domain information groper) is a flexible tool
95       for interrogating DNS name servers.  It performs DNS lookups and
96       displays the answers that are returned from the name server(s) that
97       were queried.  Most DNS administrators use <command>dig</command> to
98       troubleshoot DNS problems because of its flexibility, ease of use and
99       clarity of output.  Other lookup tools tend to have less functionality
100       than <command>dig</command>.
101     </para>
102
103     <para>
104       Although <command>dig</command> is normally used with
105       command-line
106       arguments, it also has a batch mode of operation for reading lookup
107       requests from a file.  A brief summary of its command-line arguments
108       and options is printed when the <option>-h</option> option is given.
109       Unlike earlier versions, the BIND 9 implementation of
110       <command>dig</command> allows multiple lookups to be issued
111       from the
112       command line.
113     </para>
114
115     <para>
116       Unless it is told to query a specific name server,
117       <command>dig</command> will try each of the servers listed
118       in
119       <filename>/etc/resolv.conf</filename>.
120     </para>
121
122     <para>
123       When no command line arguments or options are given,
124       <command>dig</command> will perform an NS query for "." (the root).
125     </para>
126
127     <para>
128       It is possible to set per-user defaults for <command>dig</command> via
129       <filename>${HOME}/.digrc</filename>.  This file is read and
130       any options in it
131       are applied before the command line arguments.
132     </para>
133
134     <para>
135       The IN and CH class names overlap with the IN and CH top level
136       domains names.  Either use the <option>-t</option> and
137       <option>-c</option> options to specify the type and class, 
138       use the <option>-q</option> the specify the domain name, or
139       use "IN." and "CH." when looking up these top level domains.
140     </para>
141
142   </refsect1>
143
144   <refsect1>
145     <title>SIMPLE USAGE</title>
146
147     <para>
148       A typical invocation of <command>dig</command> looks like:
149       <programlisting> dig @server name type </programlisting>
150       where:
151
152       <variablelist>
153
154         <varlistentry>
155           <term><constant>server</constant></term>
156           <listitem>
157             <para>
158               is the name or IP address of the name server to query.  This can
159               be an IPv4
160               address in dotted-decimal notation or an IPv6
161               address in colon-delimited notation.  When the supplied
162               <parameter>server</parameter> argument is a
163               hostname,
164               <command>dig</command> resolves that name before
165               querying that name
166               server.  If no <parameter>server</parameter>
167               argument is provided,
168               <command>dig</command> consults <filename>/etc/resolv.conf</filename>
169               and queries the name servers listed there.  The reply from the
170               name
171               server that responds is displayed.
172             </para>
173           </listitem>
174         </varlistentry>
175
176         <varlistentry>
177           <term><constant>name</constant></term>
178           <listitem>
179             <para>
180               is the name of the resource record that is to be looked up.
181             </para>
182           </listitem>
183         </varlistentry>
184
185         <varlistentry>
186           <term><constant>type</constant></term>
187           <listitem>
188             <para>
189               indicates what type of query is required &mdash;
190               ANY, A, MX, SIG, etc.
191               <parameter>type</parameter> can be any valid query
192               type.  If no
193               <parameter>type</parameter> argument is supplied,
194               <command>dig</command> will perform a lookup for an
195               A record.
196             </para>
197           </listitem>
198         </varlistentry>
199
200       </variablelist>
201     </para>
202
203   </refsect1>
204
205   <refsect1>
206     <title>OPTIONS</title>
207
208     <para>
209       The <option>-b</option> option sets the source IP address of the query
210       to <parameter>address</parameter>.  This must be a valid
211       address on
212       one of the host's network interfaces or "0.0.0.0" or "::".  An optional
213       port
214       may be specified by appending "#&lt;port&gt;"
215     </para>
216
217     <para>
218       The default query class (IN for internet) is overridden by the
219       <option>-c</option> option.  <parameter>class</parameter> is
220       any valid
221       class, such as HS for Hesiod records or CH for Chaosnet records.
222     </para>
223
224     <para>
225       The <option>-f</option> option makes <command>dig </command>
226       operate
227       in batch mode by reading a list of lookup requests to process from the
228       file <parameter>filename</parameter>.  The file contains a
229       number of
230       queries, one per line.  Each entry in the file should be organized in
231       the same way they would be presented as queries to
232       <command>dig</command> using the command-line interface.
233     </para>
234
235     <para>
236       The <option>-m</option> option enables memory usage debugging.
237       <!-- It enables ISC_MEM_DEBUGTRACE and ISC_MEM_DEBUGRECORD
238            documented in include/isc/mem.h -->
239     </para>
240
241     <para>
242       If a non-standard port number is to be queried, the
243       <option>-p</option> option is used.  <parameter>port#</parameter> is
244       the port number that <command>dig</command> will send its
245       queries
246       instead of the standard DNS port number 53.  This option would be used
247       to test a name server that has been configured to listen for queries
248       on a non-standard port number.
249     </para>
250
251     <para>
252       The <option>-4</option> option forces <command>dig</command>
253       to only
254       use IPv4 query transport.  The <option>-6</option> option forces
255       <command>dig</command> to only use IPv6 query transport.
256     </para>
257
258     <para>
259       The <option>-t</option> option sets the query type to
260       <parameter>type</parameter>.  It can be any valid query type
261       which is
262       supported in BIND 9.  The default query type is "A", unless the
263       <option>-x</option> option is supplied to indicate a reverse lookup.
264       A zone transfer can be requested by specifying a type of AXFR.  When
265       an incremental zone transfer (IXFR) is required,
266       <parameter>type</parameter> is set to <literal>ixfr=N</literal>.
267       The incremental zone transfer will contain the changes made to the zone
268       since the serial number in the zone's SOA record was
269       <parameter>N</parameter>.
270     </para>
271
272     <para>
273       The <option>-q</option> option sets the query name to 
274       <parameter>name</parameter>.  This useful do distinguish the
275       <parameter>name</parameter> from other arguments.
276     </para>
277
278     <para>
279       Reverse lookups &mdash; mapping addresses to names &mdash; are simplified by the
280       <option>-x</option> option.  <parameter>addr</parameter> is
281       an IPv4
282       address in dotted-decimal notation, or a colon-delimited IPv6 address.
283       When this option is used, there is no need to provide the
284       <parameter>name</parameter>, <parameter>class</parameter> and
285       <parameter>type</parameter> arguments.  <command>dig</command>
286       automatically performs a lookup for a name like
287       <literal>11.12.13.10.in-addr.arpa</literal> and sets the
288       query type and
289       class to PTR and IN respectively.  By default, IPv6 addresses are
290       looked up using nibble format under the IP6.ARPA domain.
291       To use the older RFC1886 method using the IP6.INT domain
292       specify the <option>-i</option> option.  Bit string labels (RFC2874)
293       are now experimental and are not attempted.
294     </para>
295
296     <para>
297       To sign the DNS queries sent by <command>dig</command> and
298       their
299       responses using transaction signatures (TSIG), specify a TSIG key file
300       using the <option>-k</option> option.  You can also specify the TSIG
301       key itself on the command line using the <option>-y</option> option;
302       <parameter>hmac</parameter> is the type of the TSIG, default HMAC-MD5,
303       <parameter>name</parameter> is the name of the TSIG key and
304       <parameter>key</parameter> is the actual key.  The key is a
305       base-64
306       encoded string, typically generated by
307       <citerefentry>
308         <refentrytitle>dnssec-keygen</refentrytitle><manvolnum>8</manvolnum>
309       </citerefentry>.
310
311       Caution should be taken when using the <option>-y</option> option on
312       multi-user systems as the key can be visible in the output from
313       <citerefentry>
314         <refentrytitle>ps</refentrytitle><manvolnum>1</manvolnum>
315       </citerefentry>
316       or in the shell's history file.  When
317       using TSIG authentication with <command>dig</command>, the name
318       server that is queried needs to know the key and algorithm that is
319       being used.  In BIND, this is done by providing appropriate
320       <command>key</command> and <command>server</command> statements in
321       <filename>named.conf</filename>.
322     </para>
323
324   </refsect1>
325
326   <refsect1>
327     <title>QUERY OPTIONS</title>
328
329     <para><command>dig</command>
330       provides a number of query options which affect
331       the way in which lookups are made and the results displayed.  Some of
332       these set or reset flag bits in the query header, some determine which
333       sections of the answer get printed, and others determine the timeout
334       and retry strategies.
335     </para>
336
337     <para>
338       Each query option is identified by a keyword preceded by a plus sign
339       (<literal>+</literal>).  Some keywords set or reset an
340       option.  These may be preceded
341       by the string <literal>no</literal> to negate the meaning of
342       that keyword.  Other
343       keywords assign values to options like the timeout interval.  They
344       have the form <option>+keyword=value</option>.
345       The query options are:
346
347       <variablelist>
348
349         <varlistentry>
350           <term><option>+[no]tcp</option></term>
351           <listitem>
352             <para>
353               Use [do not use] TCP when querying name servers.  The default
354               behavior is to use UDP unless an AXFR or IXFR query is
355               requested, in
356               which case a TCP connection is used.
357             </para>
358           </listitem>
359         </varlistentry>
360
361         <varlistentry>
362           <term><option>+[no]vc</option></term>
363           <listitem>
364             <para>
365               Use [do not use] TCP when querying name servers.  This alternate
366               syntax to <parameter>+[no]tcp</parameter> is
367               provided for backwards
368               compatibility.  The "vc" stands for "virtual circuit".
369             </para>
370           </listitem>
371         </varlistentry>
372
373         <varlistentry>
374           <term><option>+[no]ignore</option></term>
375           <listitem>
376             <para>
377               Ignore truncation in UDP responses instead of retrying with TCP.
378                By
379               default, TCP retries are performed.
380             </para>
381           </listitem>
382         </varlistentry>
383
384         <varlistentry>
385           <term><option>+domain=somename</option></term>
386           <listitem>
387             <para>
388               Set the search list to contain the single domain
389               <parameter>somename</parameter>, as if specified in
390               a
391               <command>domain</command> directive in
392               <filename>/etc/resolv.conf</filename>, and enable
393               search list
394               processing as if the <parameter>+search</parameter>
395               option were given.
396             </para>
397           </listitem>
398         </varlistentry>
399
400         <varlistentry>
401           <term><option>+[no]search</option></term>
402           <listitem>
403             <para>
404               Use [do not use] the search list defined by the searchlist or
405               domain
406               directive in <filename>resolv.conf</filename> (if
407               any).
408               The search list is not used by default.
409             </para>
410           </listitem>
411         </varlistentry>
412
413         <varlistentry>
414           <term><option>+[no]showsearch</option></term>
415           <listitem>
416             <para>
417               Perform [do not perform] a search showing intermediate
418               results.
419             </para>
420           </listitem>
421         </varlistentry>
422
423         <varlistentry>
424           <term><option>+[no]defname</option></term>
425           <listitem>
426             <para>
427               Deprecated, treated as a synonym for <parameter>+[no]search</parameter>
428             </para>
429           </listitem>
430         </varlistentry>
431
432         <varlistentry>
433           <term><option>+[no]aaonly</option></term>
434           <listitem>
435             <para>
436               Sets the "aa" flag in the query.
437             </para>
438           </listitem>
439         </varlistentry>
440
441         <varlistentry>
442           <term><option>+[no]aaflag</option></term>
443           <listitem>
444             <para>
445               A synonym for <parameter>+[no]aaonly</parameter>.
446             </para>
447           </listitem>
448         </varlistentry>
449
450         <varlistentry>
451           <term><option>+[no]adflag</option></term>
452           <listitem>
453             <para>
454               Set [do not set] the AD (authentic data) bit in the query.  The
455               AD bit
456               currently has a standard meaning only in responses, not in
457               queries,
458               but the ability to set the bit in the query is provided for
459               completeness.
460             </para>
461           </listitem>
462         </varlistentry>
463
464         <varlistentry>
465           <term><option>+[no]cdflag</option></term>
466           <listitem>
467             <para>
468               Set [do not set] the CD (checking disabled) bit in the query.
469               This
470               requests the server to not perform DNSSEC validation of
471               responses.
472             </para>
473           </listitem>
474         </varlistentry>
475
476         <varlistentry>
477           <term><option>+[no]cl</option></term>
478           <listitem>
479             <para>
480               Display [do not display] the CLASS when printing the record.
481             </para>
482           </listitem>
483         </varlistentry>
484
485         <varlistentry>
486           <term><option>+[no]ttlid</option></term>
487           <listitem>
488             <para>
489               Display [do not display] the TTL when printing the record.
490             </para>
491           </listitem>
492         </varlistentry>
493
494         <varlistentry>
495           <term><option>+[no]recurse</option></term>
496           <listitem>
497             <para>
498               Toggle the setting of the RD (recursion desired) bit in the
499               query.
500               This bit is set by default, which means <command>dig</command>
501               normally sends recursive queries.  Recursion is automatically
502               disabled
503               when the <parameter>+nssearch</parameter> or
504               <parameter>+trace</parameter> query options are
505               used.
506             </para>
507           </listitem>
508         </varlistentry>
509
510         <varlistentry>
511           <term><option>+[no]nssearch</option></term>
512           <listitem>
513             <para>
514               When this option is set, <command>dig</command>
515               attempts to find the
516               authoritative name servers for the zone containing the name
517               being
518               looked up and display the SOA record that each name server has
519               for the
520               zone.
521             </para>
522           </listitem>
523         </varlistentry>
524
525         <varlistentry>
526           <term><option>+[no]trace</option></term>
527           <listitem>
528             <para>
529               Toggle tracing of the delegation path from the root name servers
530               for
531               the name being looked up.  Tracing is disabled by default.  When
532               tracing is enabled, <command>dig</command> makes
533               iterative queries to
534               resolve the name being looked up.  It will follow referrals from
535               the
536               root servers, showing the answer from each server that was used
537               to
538               resolve the lookup.
539             </para>
540           </listitem>
541         </varlistentry>
542
543         <varlistentry>
544           <term><option>+[no]cmd</option></term>
545           <listitem>
546             <para>
547               Toggles the printing of the initial comment in the output
548               identifying
549               the version of <command>dig</command> and the query
550               options that have
551               been applied.  This comment is printed by default.
552             </para>
553           </listitem>
554         </varlistentry>
555
556         <varlistentry>
557           <term><option>+[no]short</option></term>
558           <listitem>
559             <para>
560               Provide a terse answer.  The default is to print the answer in a
561               verbose form.
562             </para>
563           </listitem>
564         </varlistentry>
565
566         <varlistentry>
567           <term><option>+[no]identify</option></term>
568           <listitem>
569             <para>
570               Show [or do not show] the IP address and port number that
571               supplied the
572               answer when the <parameter>+short</parameter> option
573               is enabled.  If
574               short form answers are requested, the default is not to show the
575               source address and port number of the server that provided the
576               answer.
577             </para>
578           </listitem>
579         </varlistentry>
580
581         <varlistentry>
582           <term><option>+[no]comments</option></term>
583           <listitem>
584             <para>
585               Toggle the display of comment lines in the output.  The default
586               is to
587               print comments.
588             </para>
589           </listitem>
590         </varlistentry>
591
592         <varlistentry>
593           <term><option>+[no]stats</option></term>
594           <listitem>
595             <para>
596               This query option toggles the printing of statistics: when the
597               query
598               was made, the size of the reply and so on.  The default
599               behavior is
600               to print the query statistics.
601             </para>
602           </listitem>
603         </varlistentry>
604
605         <varlistentry>
606           <term><option>+[no]qr</option></term>
607           <listitem>
608             <para>
609               Print [do not print] the query as it is sent.
610               By default, the query is not printed.
611             </para>
612           </listitem>
613         </varlistentry>
614
615         <varlistentry>
616           <term><option>+[no]question</option></term>
617           <listitem>
618             <para>
619               Print [do not print] the question section of a query when an
620               answer is
621               returned.  The default is to print the question section as a
622               comment.
623             </para>
624           </listitem>
625         </varlistentry>
626
627         <varlistentry>
628           <term><option>+[no]answer</option></term>
629           <listitem>
630             <para>
631               Display [do not display] the answer section of a reply.  The
632               default
633               is to display it.
634             </para>
635           </listitem>
636         </varlistentry>
637
638         <varlistentry>
639           <term><option>+[no]authority</option></term>
640           <listitem>
641             <para>
642               Display [do not display] the authority section of a reply.  The
643               default is to display it.
644             </para>
645           </listitem>
646         </varlistentry>
647
648         <varlistentry>
649           <term><option>+[no]additional</option></term>
650           <listitem>
651             <para>
652               Display [do not display] the additional section of a reply.
653               The default is to display it.
654             </para>
655           </listitem>
656         </varlistentry>
657
658         <varlistentry>
659           <term><option>+[no]all</option></term>
660           <listitem>
661             <para>
662               Set or clear all display flags.
663             </para>
664           </listitem>
665         </varlistentry>
666
667         <varlistentry>
668           <term><option>+time=T</option></term>
669           <listitem>
670             <para>
671
672               Sets the timeout for a query to
673               <parameter>T</parameter> seconds.  The default
674               timeout is 5 seconds.
675               An attempt to set <parameter>T</parameter> to less
676               than 1 will result
677               in a query timeout of 1 second being applied.
678             </para>
679           </listitem>
680         </varlistentry>
681
682         <varlistentry>
683           <term><option>+tries=T</option></term>
684           <listitem>
685             <para>
686               Sets the number of times to try UDP queries to server to
687               <parameter>T</parameter> instead of the default, 3.
688               If
689               <parameter>T</parameter> is less than or equal to
690               zero, the number of
691               tries is silently rounded up to 1.
692             </para>
693           </listitem>
694         </varlistentry>
695
696         <varlistentry>
697           <term><option>+retry=T</option></term>
698           <listitem>
699             <para>
700               Sets the number of times to retry UDP queries to server to
701               <parameter>T</parameter> instead of the default, 2.
702               Unlike
703               <parameter>+tries</parameter>, this does not include
704               the initial
705               query.
706             </para>
707           </listitem>
708         </varlistentry>
709
710         <varlistentry>
711           <term><option>+ndots=D</option></term>
712           <listitem>
713             <para>
714               Set the number of dots that have to appear in
715               <parameter>name</parameter> to <parameter>D</parameter> for it to be
716               considered absolute.  The default value is that defined using
717               the
718               ndots statement in <filename>/etc/resolv.conf</filename>, or 1 if no
719               ndots statement is present.  Names with fewer dots are
720               interpreted as
721               relative names and will be searched for in the domains listed in
722               the
723               <option>search</option> or <option>domain</option> directive in
724               <filename>/etc/resolv.conf</filename>.
725             </para>
726           </listitem>
727         </varlistentry>
728
729         <varlistentry>
730           <term><option>+bufsize=B</option></term>
731           <listitem>
732             <para>
733               Set the UDP message buffer size advertised using EDNS0 to
734               <parameter>B</parameter> bytes.  The maximum and minimum sizes
735               of this buffer are 65535 and 0 respectively.  Values outside
736               this range are rounded up or down appropriately.  
737               Values other than zero will cause a EDNS query to be sent.
738             </para>
739           </listitem>
740         </varlistentry>
741
742         <varlistentry>
743           <term><option>+edns=#</option></term>
744           <listitem>
745             <para>
746                Specify the EDNS version to query with.  Valid values
747                are 0 to 255.  Setting the EDNS version will cause a
748                EDNS query to be sent.  <option>+noedns</option> clears the
749                remembered EDNS version.
750             </para>
751           </listitem>
752         </varlistentry>
753
754         <varlistentry>
755           <term><option>+[no]multiline</option></term>
756           <listitem>
757             <para>
758               Print records like the SOA records in a verbose multi-line
759               format with human-readable comments.  The default is to print
760               each record on a single line, to facilitate machine parsing
761               of the <command>dig</command> output.
762             </para>
763           </listitem>
764         </varlistentry>
765
766         <varlistentry>
767           <term><option>+[no]fail</option></term>
768           <listitem>
769             <para>
770               Do not try the next server if you receive a SERVFAIL.  The
771               default is
772               to not try the next server which is the reverse of normal stub
773               resolver
774               behavior.
775             </para>
776           </listitem>
777         </varlistentry>
778
779         <varlistentry>
780           <term><option>+[no]besteffort</option></term>
781           <listitem>
782             <para>
783               Attempt to display the contents of messages which are malformed.
784               The default is to not display malformed answers.
785             </para>
786           </listitem>
787         </varlistentry>
788
789         <varlistentry>
790           <term><option>+[no]dnssec</option></term>
791           <listitem>
792             <para>
793               Requests DNSSEC records be sent by setting the DNSSEC OK bit
794               (DO)
795               in the OPT record in the additional section of the query.
796             </para>
797           </listitem>
798         </varlistentry>
799
800         <varlistentry>
801           <term><option>+[no]sigchase</option></term>
802           <listitem>
803             <para>
804               Chase DNSSEC signature chains.  Requires dig be compiled with
805               -DDIG_SIGCHASE.
806             </para>
807           </listitem>
808         </varlistentry>
809
810         <varlistentry>
811           <term><option>+trusted-key=####</option></term>
812           <listitem>
813             <para>
814               Specifies a file containing trusted keys to be used with
815               <option>+sigchase</option>.  Each DNSKEY record must be
816               on its own line.
817             </para>
818             <para>
819               If not specified <command>dig</command> will look for
820               <filename>/etc/trusted-key.key</filename> then
821               <filename>trusted-key.key</filename> in the current directory.
822             </para>
823             <para>
824               Requires dig be compiled with -DDIG_SIGCHASE.
825             </para>
826           </listitem>
827         </varlistentry>
828
829         <varlistentry>
830           <term><option>+[no]topdown</option></term>
831           <listitem>
832             <para>
833               When chasing DNSSEC signature chains perform a top-down
834               validation.
835               Requires dig be compiled with -DDIG_SIGCHASE.
836             </para>
837           </listitem>
838         </varlistentry>
839
840
841
842       </variablelist>
843
844     </para>
845   </refsect1>
846
847   <refsect1>
848     <title>MULTIPLE QUERIES</title>
849
850     <para>
851       The BIND 9 implementation of <command>dig </command>
852       supports
853       specifying multiple queries on the command line (in addition to
854       supporting the <option>-f</option> batch file option).  Each of those
855       queries can be supplied with its own set of flags, options and query
856       options.
857     </para>
858
859     <para>
860       In this case, each <parameter>query</parameter> argument
861       represent an
862       individual query in the command-line syntax described above.  Each
863       consists of any of the standard options and flags, the name to be
864       looked up, an optional query type and class and any query options that
865       should be applied to that query.
866     </para>
867
868     <para>
869       A global set of query options, which should be applied to all queries,
870       can also be supplied.  These global query options must precede the
871       first tuple of name, class, type, options, flags, and query options
872       supplied on the command line.  Any global query options (except
873       the <option>+[no]cmd</option> option) can be
874       overridden by a query-specific set of query options.  For example:
875       <programlisting>
876 dig +qr www.isc.org any -x 127.0.0.1 isc.org ns +noqr
877 </programlisting>
878       shows how <command>dig</command> could be used from the
879       command line
880       to make three lookups: an ANY query for <literal>www.isc.org</literal>, a
881       reverse lookup of 127.0.0.1 and a query for the NS records of
882       <literal>isc.org</literal>.
883
884       A global query option of <parameter>+qr</parameter> is
885       applied, so
886       that <command>dig</command> shows the initial query it made
887       for each
888       lookup.  The final query has a local query option of
889       <parameter>+noqr</parameter> which means that <command>dig</command>
890       will not print the initial query when it looks up the NS records for
891       <literal>isc.org</literal>.
892     </para>
893
894   </refsect1>
895
896   <refsect1>
897     <title>IDN SUPPORT</title>
898     <para>
899       If <command>dig</command> has been built with IDN (internationalized
900       domain name) support, it can accept and display non-ASCII domain names.
901       <command>dig</command> appropriately converts character encoding of
902       domain name before sending a request to DNS server or displaying a
903       reply from the server.
904       If you'd like to turn off the IDN support for some reason, defines
905       the <envar>IDN_DISABLE</envar> environment variable.
906       The IDN support is disabled if the variable is set when 
907       <command>dig</command> runs.
908     </para>
909   </refsect1>
910
911   <refsect1>
912     <title>FILES</title>
913     <para><filename>/etc/resolv.conf</filename>
914     </para>
915     <para><filename>${HOME}/.digrc</filename>
916     </para>
917   </refsect1>
918
919   <refsect1>
920     <title>SEE ALSO</title>
921     <para><citerefentry>
922         <refentrytitle>host</refentrytitle><manvolnum>1</manvolnum>
923       </citerefentry>,
924       <citerefentry>
925         <refentrytitle>named</refentrytitle><manvolnum>8</manvolnum>
926       </citerefentry>,
927       <citerefentry>
928         <refentrytitle>dnssec-keygen</refentrytitle><manvolnum>8</manvolnum>
929       </citerefentry>,
930       <citetitle>RFC1035</citetitle>.
931     </para>
932   </refsect1>
933
934   <refsect1>
935     <title>BUGS</title>
936     <para>
937       There are probably too many query options.
938     </para>
939   </refsect1>
940 </refentry><!--
941  - Local variables:
942  - mode: sgml
943  - End:
944 -->