Netzwerktools: Unterschied zwischen den Versionen

Aus Friedmar's Wiki
Zur Navigation springen Zur Suche springen
Zeile 3: Zeile 3:
Der Terminal-Befehl '''dig''' liefert alle DNS-Informationen zu einer bestimmten Domain. Die möglichen Optionen liefert dig -h:
Der Terminal-Befehl '''dig''' liefert alle DNS-Informationen zu einer bestimmten Domain. Die möglichen Optionen liefert dig -h:


{Usage:  dig [@global-server] [domain] [q-type] [q-class] {q-opt}
<nowiki>Usage:  dig [@global-server] [domain] [q-type] [q-class] {q-opt}</nowiki>
            {global-d-opt} host [@local-server] {local-d-opt}
<nowiki>            {global-d-opt} host [@local-server] {local-d-opt}</nowiki>
            [ host [@local-server] {local-d-opt} [...]]
<nowiki>            [ host [@local-server] {local-d-opt} [...]]</nowiki>
Where:  domain   is in the Domain Name System
<nowiki>Where:  domain   is in the Domain Name System</nowiki>
        q-class  is one of (in,hs,ch,...) [default: in]
<nowiki>        q-class  is one of (in,hs,ch,...) [default: in]</nowiki>
        q-type  is one of (a,any,mx,ns,soa,hinfo,axfr,txt,...) [default:a]
<nowiki>        q-type  is one of (a,any,mx,ns,soa,hinfo,axfr,txt,...) [default:a]</nowiki>
                (Use ixfr=version for type ixfr)
<nowiki>                (Use ixfr=version for type ixfr)</nowiki>
        q-opt    is one of:
<nowiki>        q-opt    is one of:</nowiki>
                -x dot-notation    (shortcut for reverse lookups)
<nowiki>                -x dot-notation    (shortcut for reverse lookups)</nowiki>
                -i                  (use IP6.INT for IPv6 reverse lookups)
<nowiki>                -i                  (use IP6.INT for IPv6 reverse lookups)</nowiki>
                -f filename        (batch mode)
<nowiki>                -f filename        (batch mode)</nowiki>
                -b address[#port]  (bind to source address/port)
<nowiki>                -b address[#port]  (bind to source address/port)</nowiki>
                -p port            (specify port number)
<nowiki>                -p port            (specify port number)</nowiki>
                -q name            (specify query name)
<nowiki>                -q name            (specify query name)</nowiki>
                -t type            (specify query type)
<nowiki>                -t type            (specify query type)</nowiki>
                -c class            (specify query class)
<nowiki>                -c class            (specify query class)</nowiki>
                -k keyfile          (specify tsig key file)
<nowiki>                -k keyfile          (specify tsig key file)</nowiki>
                -y [hmac:]name:key  (specify named base64 tsig key)
<nowiki>                -y [hmac:]name:key  (specify named base64 tsig key)</nowiki>
                -4                  (use IPv4 query transport only)
<nowiki>                -4                  (use IPv4 query transport only)</nowiki>
                -6                  (use IPv6 query transport only)
<nowiki>                -6                  (use IPv6 query transport only)</nowiki>
                -m                  (enable memory usage debugging)
<nowiki>                -m                  (enable memory usage debugging)</nowiki>
        d-opt    is of the form +keyword[=value], where keyword is:
<nowiki>        d-opt    is of the form +keyword[=value], where keyword is:</nowiki>
                +[no]vc            (TCP mode)
<nowiki>                +[no]vc            (TCP mode)</nowiki>
                +[no]tcp            (TCP mode, alternate syntax)
<nowiki>                +[no]tcp            (TCP mode, alternate syntax)</nowiki>
                +time=###          (Set query timeout) [5]
<nowiki>                +time=###          (Set query timeout) [5]</nowiki>
                +tries=###          (Set number of UDP attempts) [3]
<nowiki>                +tries=###          (Set number of UDP attempts) [3]</nowiki>
                +retry=###          (Set number of UDP retries) [2]
<nowiki>                +retry=###          (Set number of UDP retries) [2]</nowiki>
                +domain=###        (Set default domainname)
<nowiki>                +domain=###        (Set default domainname)</nowiki>
                +bufsize=###        (Set EDNS0 Max UDP packet size)
<nowiki>                +bufsize=###        (Set EDNS0 Max UDP packet size)</nowiki>
                +ndots=###          (Set NDOTS value)
<nowiki>                +ndots=###          (Set NDOTS value)</nowiki>
                +edns=###          (Set EDNS version)
<nowiki>                +edns=###          (Set EDNS version)</nowiki>
                +[no]search        (Set whether to use searchlist)
<nowiki>                +[no]search        (Set whether to use searchlist)</nowiki>
                +[no]showsearch    (Search with intermediate results)
<nowiki>                +[no]showsearch    (Search with intermediate results)</nowiki>
                +[no]defname        (Ditto)
<nowiki>                +[no]defname        (Ditto)</nowiki>
                +[no]recurse        (Recursive mode)
<nowiki>                +[no]recurse        (Recursive mode)</nowiki>
                +[no]ignore        (Don't revert to TCP for TC responses.)
<nowiki>                +[no]ignore        (Don't revert to TCP for TC responses.)</nowiki>
                +[no]fail          (Don't try next server on SERVFAIL)
<nowiki>                +[no]fail          (Don't try next server on SERVFAIL)</nowiki>
                +[no]besteffort    (Try to parse even illegal messages)
<nowiki>                +[no]besteffort    (Try to parse even illegal messages)</nowiki>
                +[no]aaonly        (Set AA flag in query (+[no]aaflag))
<nowiki>                +[no]aaonly        (Set AA flag in query (+[no]aaflag))</nowiki>
                +[no]adflag        (Set AD flag in query)
<nowiki>                +[no]adflag        (Set AD flag in query)</nowiki>
                +[no]cdflag        (Set CD flag in query)
<nowiki>                +[no]cdflag        (Set CD flag in query)</nowiki>
                +[no]cl            (Control display of class in records)
<nowiki>                +[no]cl            (Control display of class in records)</nowiki>
                +[no]cmd            (Control display of command line)
<nowiki>                +[no]cmd            (Control display of command line)</nowiki>
                +[no]comments      (Control display of comment lines)
<nowiki>                +[no]comments      (Control display of comment lines)</nowiki>
                +[no]question      (Control display of question)
<nowiki>                +[no]question      (Control display of question)</nowiki>
                +[no]answer        (Control display of answer)
<nowiki>                +[no]answer        (Control display of answer)</nowiki>
                +[no]authority      (Control display of authority)
<nowiki>                +[no]authority      (Control display of authority)</nowiki>
                +[no]additional    (Control display of additional)
<nowiki>                +[no]additional    (Control display of additional)</nowiki>
                +[no]stats          (Control display of statistics)
<nowiki>                +[no]stats          (Control display of statistics)</nowiki>
                +[no]short          (Disable everything except short
<nowiki>                +[no]short          (Disable everything except short</nowiki>
                                      form of answer)
<nowiki>                                      form of answer)</nowiki>
                +[no]ttlid          (Control display of ttls in records)
<nowiki>                +[no]ttlid          (Control display of ttls in records)</nowiki>
                +[no]all            (Set or clear all display flags)
<nowiki>                +[no]all            (Set or clear all display flags)</nowiki>
                +[no]qr            (Print question before sending)
<nowiki>                +[no]qr            (Print question before sending)</nowiki>
                +[no]nssearch      (Search all authoritative nameservers)
<nowiki>                +[no]nssearch      (Search all authoritative nameservers)</nowiki>
                +[no]identify      (ID responders in short answers)
<nowiki>                +[no]identify      (ID responders in short answers)</nowiki>
                +[no]trace          (Trace delegation down from root)
<nowiki>                +[no]trace          (Trace delegation down from root)</nowiki>
                +[no]dnssec        (Request DNSSEC records)
<nowiki>                +[no]dnssec        (Request DNSSEC records)</nowiki>
                +[no]nsid          (Request Name Server ID)
<nowiki>                +[no]nsid          (Request Name Server ID)</nowiki>
                +[no]sigchase      (Chase DNSSEC signatures)
<nowiki>                +[no]sigchase      (Chase DNSSEC signatures)</nowiki>
                +trusted-key=####  (Trusted Key when chasing DNSSEC sigs)
<nowiki>                +trusted-key=####  (Trusted Key when chasing DNSSEC sigs)</nowiki>
                +[no]topdown        (Do DNSSEC validation top down mode)
<nowiki>                +[no]topdown        (Do DNSSEC validation top down mode)</nowiki>
                +[no]multiline      (Print records in an expanded format)
<nowiki>                +[no]multiline      (Print records in an expanded format)</nowiki>
        global d-opts and servers (before host name) affect all queries.
<nowiki>        global d-opts and servers (before host name) affect all queries.</nowiki>
        local d-opts and servers (after host name) affect only that lookup.
<nowiki>        local d-opts and servers (after host name) affect only that lookup.</nowiki>
        -h                          (print help and exit)
<nowiki>        -h                          (print help and exit)</nowiki>
        -v                          (print version and exit)}
<nowiki>        -v                          (print version and exit)</nowiki>

Version vom 24. Juli 2011, 13:44 Uhr

dig

Der Terminal-Befehl dig liefert alle DNS-Informationen zu einer bestimmten Domain. Die möglichen Optionen liefert dig -h:

Usage:  dig [@global-server] [domain] [q-type] [q-class] {q-opt}
            {global-d-opt} host [@local-server] {local-d-opt}
            [ host [@local-server] {local-d-opt} [...]]
Where:  domain	  is in the Domain Name System
        q-class  is one of (in,hs,ch,...) [default: in]
        q-type   is one of (a,any,mx,ns,soa,hinfo,axfr,txt,...) [default:a]
                 (Use ixfr=version for type ixfr)
        q-opt    is one of:
                 -x dot-notation     (shortcut for reverse lookups)
                 -i                  (use IP6.INT for IPv6 reverse lookups)
                 -f filename         (batch mode)
                 -b address[#port]   (bind to source address/port)
                 -p port             (specify port number)
                 -q name             (specify query name)
                 -t type             (specify query type)
                 -c class            (specify query class)
                 -k keyfile          (specify tsig key file)
                 -y [hmac:]name:key  (specify named base64 tsig key)
                 -4                  (use IPv4 query transport only)
                 -6                  (use IPv6 query transport only)
                 -m                  (enable memory usage debugging)
        d-opt    is of the form +keyword[=value], where keyword is:
                 +[no]vc             (TCP mode)
                 +[no]tcp            (TCP mode, alternate syntax)
                 +time=###           (Set query timeout) [5]
                 +tries=###          (Set number of UDP attempts) [3]
                 +retry=###          (Set number of UDP retries) [2]
                 +domain=###         (Set default domainname)
                 +bufsize=###        (Set EDNS0 Max UDP packet size)
                 +ndots=###          (Set NDOTS value)
                 +edns=###           (Set EDNS version)
                 +[no]search         (Set whether to use searchlist)
                 +[no]showsearch     (Search with intermediate results)
                 +[no]defname        (Ditto)
                 +[no]recurse        (Recursive mode)
                 +[no]ignore         (Don't revert to TCP for TC responses.)
                 +[no]fail           (Don't try next server on SERVFAIL)
                 +[no]besteffort     (Try to parse even illegal messages)
                 +[no]aaonly         (Set AA flag in query (+[no]aaflag))
                 +[no]adflag         (Set AD flag in query)
                 +[no]cdflag         (Set CD flag in query)
                 +[no]cl             (Control display of class in records)
                 +[no]cmd            (Control display of command line)
                 +[no]comments       (Control display of comment lines)
                 +[no]question       (Control display of question)
                 +[no]answer         (Control display of answer)
                 +[no]authority      (Control display of authority)
                 +[no]additional     (Control display of additional)
                 +[no]stats          (Control display of statistics)
                 +[no]short          (Disable everything except short
                                      form of answer)
                 +[no]ttlid          (Control display of ttls in records)
                 +[no]all            (Set or clear all display flags)
                 +[no]qr             (Print question before sending)
                 +[no]nssearch       (Search all authoritative nameservers)
                 +[no]identify       (ID responders in short answers)
                 +[no]trace          (Trace delegation down from root)
                 +[no]dnssec         (Request DNSSEC records)
                 +[no]nsid           (Request Name Server ID)
                 +[no]sigchase       (Chase DNSSEC signatures)
                 +trusted-key=####   (Trusted Key when chasing DNSSEC sigs)
                 +[no]topdown        (Do DNSSEC validation top down mode)
                 +[no]multiline      (Print records in an expanded format)
        global d-opts and servers (before host name) affect all queries.
        local d-opts and servers (after host name) affect only that lookup.
        -h                           (print help and exit)
        -v                           (print version and exit)