Provided by: manpages-zh_1.5.2-1_all bug

NAME()

     dig --

SYNOPSIS()

     dig [@server] domain [<query-type>] [<query-class>] [+<query-option>]
     [-<dig-option>] [%comment]

DESCRIPTION()

     Dig (domain information groper ) , .  Dig : , .  .

      dig :

                 dig @server domain query-type query-class

     :

     server      Internet.  , dig .

                 : , (BIND).  DNS,  ., , /etc/resolv.conf , server .
                 resolver(5) /etc/resolv.conf .  : /etc/resolv.conf , () .  ,
                 LOCALRES , /etc/resolv.conf (LOCALRES  dig ,).  LOCALRES ,
                 /etc/resolf.conf.

     domain      .  -x ( OTHER OPTIONS ).

     query-type  (DNS).  , ``a'' (T_A = address).  :

                 a       T_A
                 any     T_ANY      /
                 mx      T_MX
                 ns      T_NS
                 soa     T_SOA
                 hinfo   T_HINFO
                 axfr    T_AXFR     ()
                 txt     T_TXT

                 (RFC 1035.)

     query-class
                 ., ``in'' (C_IN = Internet).  :

                 in      C_IN       Internet
                 any     C_ANY      /

                 (RFC 1035.)

                 : ``Any''  / .  Dig ``any'' query-type = T_ANY.  query-class
                 = C_ANY, ``any'' , -c () query-class.

   OTHER OPTIONS()
     %ignored-comment
                 ``%'' .  dig .  @server-domain-name ,, .  :

                             dig @128.9.0.32 %venera.isi.edu mx isi.edu

     -<dig option>
                 ``-'' dig .  ():

                 -x dot-notation-address
                             .  ``dig 32.0.9.128.in-addr.arpa'', ``dig -x
                             128.9.0.32''.

                 -f file     dig .  ( dig ),.  '; ' '#' '\n' .  , .

                 -T time     , ,.  dig ..

                 -p port     .  .53.

                 -P[ping-string]
                             , ping(8) .shell .  :

                                         ping -s -server_name -56 -3

                              ``ping_string'' , shell ``ping -s''.

                 -t query-type
                             .  , ( mx = T_MX).

                 -c query-class
                             .  , (in = C_IN).

                 -k keydir:keyname
                             TSIG, keydir.

                 -envsav      dig (,,.),, .  dig ,.  , dig ().  shell LOCALDEF
                             , dig ., ``DiG.env''.

                             : LOCALDEF dig , .

                              dig , ``./DiG.env'' shell LOCALDEF .  , , .

                 -envset     .  dig ``-envset'' , dig , ``-envset'' .

                 -[no] cm stick
                             .  dig ( ``-envset'' ) dig ().  ``-nostick'' dig
                             , dig (, ``sticky()'' ).

     +<query-option>
                 ``+'' dig .  nslookup(8) .  ,:

                             + keyword [=value]

                 .  ``+''  -- .  :

                 Keyword      Abbrev.  Meaning [default]

                 ()     ()   () []

                 [no] debug     (deb)    / [deb]
                 [no] d2                 / [nod2]
                 [no] recurse   (rec)    / [rec]
                 retry=#       (ret)     # [4]
                 time=#        (ti)      # [4]
                 [no] ko                 (keep open options)(vc) [noko]
                 [no] vc                 / [novc]
                 [no] defname   (def)    / [def]
                 [no] search    (sea)    / [sea]
                 domain=NAME   (do)       NAME
                 [no] ignore    (i)      /(trunc.)  [noi]
                 [no] primary   (pr)     / [nopr]
                 [no] aaonly    (aa)      [noaa]
                 [no] cmd                (echo) [cmd]
                 [no] stats     (st)      [st]
                 [no] Header    (H)       [H]
                 [no] header    (he)      [he]
                 [no] ttlid     (tt)     TTLs(Time to Live) [tt]
                 [no] cl                  [nocl]
                 [no] qr                  [noqr]
                 [no] reply     (rep)     [rep]
                 [no] ques      (qu)      [qu]
                 [no] answer    (an)      [an]
                 [no] author    (au)      [au]
                 [no] addit     (ad)      [ad]
                 pfdef
                 pfmin
                 pfset=#                 # (#//)
                 pfand=#                 #(bitwise and print flags with #)
                 pfor=#                  #(bitwise or print flags with #)

                 , retry time .:

                       for i = 0 to retry - 1
                           for j = 1 to num_servers
                               send_query
                               wait((time * (2**i)) / num_servers)
                           end
                       end

                 (: dig ``num_servers'' 1 . )

   DETAILS()
     Dig BIND resolver(3) .  BIND 4.9,BIND dig .  , dig () Dig resolver(3)
     res_init(), res_mkquery(), res_send() _res .

ENVIRONMENT()

     LOCALRES    Pa /etc/resolv.conf
     LOCALDEF

      -envsav, -envset, -[no] stick .

FILES()

     /etc/resolv.conf

     ./DiG.env

SEE ALSO()

     named(8), resolver(3), resolver(5), nslookup(8).

STANDARDS()

     RFC 1035.

AUTHOR()

     Steve Hotz hotz@isi.edu

ACKNOWLEDGMENTS()

     Dig nslookup(8) , Andrew Cherenson.

BUGS

     Dig ("creeping featurism")  -- .  ., .

     , Dig () (: exit).  .  (), ;, dig .

[]

     riser <boomer@ccidnet.com>

[]

     2001/7/19

Linuxman

     http://cmpp.linuxforum.net