Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Diagnose-Tool dig - Beispiele

&pagelevel(4)&pagelevel

Nachfolgend finden Sie eine Reihe von Beispielen für das Arbeiten mit dem Diagnose-Tool dig.


Abfrage der Adresse zu einem Namen (Serveradresse aus resolv.conf)

# dig ts.fujitsu.com
; <<>> DiG 9.7.1 <<>> ts.fujitsu.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27805
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;ts.fujitsu.com.                        IN      A
;; ANSWER SECTION:
ts.fujitsu.com.         86400   IN      A       217.115.66.11
;; Query time: 2 msec
;; SERVER: 123.123.123.123#53(123.123.123.123)
;; WHEN: Wed Nov 24 15:52:42 2010
;; MSG SIZE  rcvd: 48


Abfrage des Namens zu einer Adresse (Serveradresse aus resolv.conf)

# dig -x 217.115.66.11
; <<>> DiG 9.7.1 <<>> -x 217.115.66.11
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47949
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;11.66.115.217.in-addr.arpa.    IN      PTR
;; ANSWER SECTION:
11.66.115.217.in-addr.arpa. 202 IN      PTR     ts.fujitsu.com.
;; Query time: 7 msec
;; SERVER: 123.123.123.123#53(123.123.123.123)
;; WHEN: Wed Nov 24 15:56:31 2010
;; MSG SIZE  rcvd: 72


Abfrage der Name Server einer DNS-Domaine (Serveradresse aus resolv.conf)

# dig ts.fujitsu.com ns
; <<>> DiG 9.7.1 <<>> ts.fujitsu.com ns
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46920
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 5
;; QUESTION SECTION:
;ts.fujitsu.com.                        IN      NS
;; ANSWER SECTION:
ts.fujitsu.com.         86400   IN      NS      ns2.klute-thiemann.de.
ts.fujitsu.com.         86400   IN      NS      ns3.klute-thiemann.de.
ts.fujitsu.com.         86400   IN      NS      ns4.klute-thiemann.de.
ts.fujitsu.com.         86400   IN      NS      ns1.ts.fujitsu.com.
ts.fujitsu.com.         86400   IN      NS      ns1.klute-thiemann.de.
;; ADDITIONAL SECTION:
ns2.klute-thiemann.de.  77674   IN      A       82.139.223.161
ns3.klute-thiemann.de.  78837   IN      A       81.92.4.138
ns4.klute-thiemann.de.  78837   IN      A       217.160.130.182
ns1.ts.fujitsu.com.     86400   IN      A       80.70.172.154
ns1.klute-thiemann.de.  77674   IN      A       217.194.235.1
;; Query time: 10 msec
;; SERVER: 123.123.123.123#53(123.123.123.123)
;; WHEN: Wed Nov 24 15:57:20 2010
;; MSG SIZE  rcvd: 219


Abfrage aller Einträge zu einem Namen (Serveradresse aus resolv.conf)

# dig ts.fujitsu.com any
; <<>> DiG 9.7.1 <<>> ts.fujitsu.com any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49007
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 11, AUTHORITY: 0, ADDITIONAL: 6
;; QUESTION SECTION:
;ts.fujitsu.com.                        IN      ANY
;; ANSWER SECTION:
ts.fujitsu.com.         86400   IN      A       217.115.66.11
ts.fujitsu.com.         86400   IN      NS      ns3.klute-thiemann.de.
ts.fujitsu.com.         86400   IN      NS      ns4.klute-thiemann.de.
ts.fujitsu.com.         86400   IN      NS      ns1.ts.fujitsu.com.
ts.fujitsu.com.         86400   IN      NS      ns1.klute-thiemann.de.
ts.fujitsu.com.         86400   IN      NS      ns2.klute-thiemann.de.
ts.fujitsu.com.         900     IN      SOA     ns1.ts.fujitsu.com. 
dns.ts.fujitsu.com. 2373 86400 3600 777600 86400
ts.fujitsu.com.         86400   IN      MX      50 dgate30.ts.fujitsu.com.
ts.fujitsu.com.         86400   IN      MX      10 dgate10.ts.fujitsu.com.
ts.fujitsu.com.         86400   IN      MX      10 dgate20.ts.fujitsu.com.
ts.fujitsu.com.         86400   IN      TXT     "v=spf1 +mx 
include:spf.ts.fujitsu.com include:spf2.ts.fujitsu.com 
include:spf3.ts.fujitsu.com include:_spf.muc.ec-messenger.com ~all"
;; ADDITIONAL SECTION:
ns3.klute-thiemann.de.  78792   IN      A       81.92.4.138
ns4.klute-thiemann.de.  78792   IN      A       217.160.130.182
ns1.ts.fujitsu.com.     86400   IN      A       80.70.172.154
ns1.klute-thiemann.de.  77629   IN      A       217.194.235.1
ns2.klute-thiemann.de.  77629   IN      A       82.139.223.161
dgate30.ts.fujitsu.com. 86400   IN      A       195.127.188.205
;; Query time: 10 msec
;; SERVER: 123.123.123.123#53(123.123.123.123)
;; WHEN: Wed Nov 24 15:58:04 2010
;; MSG SIZE  rcvd: 508


Beispiel für einen Zonentransfer (mit Angabe einer expliziten Serveradresse)

# dig @123.123.123.123 mydom.de axfr
; <<>> DiG 9.7.1 <<>> @123.123.129.15 dom1.sq axfr
; (1 server found)
;; global options: +cmd
mydom.de.               604800  IN      SOA    mydom-ns.mydom.de. 
root.mydom.de. 42 172800 1
4400 3628800 604800
mydom.de.               604800  IN      MX 0   mx-host0.mydom.de.
mydom.de.               604800  IN      MX 1   mx-host1.mydom.de.
mydom.de.               604800  IN      MX 2   mx-host2.mydom.de.
mydom.de.               604800  IN      NS     mydom-ns.mydom.de.
mydom-ns.mydom.de.      604800  IN      A      123.123.123.101
mydom1.mydom.de.        604800  IN      NS     mydom1-ns.mydom1.mydom.de.
mydom1-ns.mydom1.mydom.de. 604800 IN    A      123.123.123.102
mydom2.mydom.de.        604800  IN      NS     mydom2-ns.mydom2.mydom.de.
mydom2-ns.mydom2.mydom.de. 604800 IN    A      123.123.123.103
myhost.mydom.de.        604800  IN      A      123.123.123.201
myhost.mydom.de.        604800  IN      A      123.123.123.202
myhost.mydom.de.        604800  IN      A      123.123.226.203
myhost.mydom.de.        604800  IN      AAAA
3ffe:1:1000:2000:abc:abcd:abcd:abc1
myhost.mydom.de.        604800  IN      AAAA
3ffe:1:1000:2000:abc:abcd:abcd:abc2
myhost.mydom.de.        604800  IN      AAAA
3ffe:1:1001:3000:bcd:bcde:bcde:bcd2
myhost-alias.mydom.de.  604800  IN      CNAME  myhost.mydom.de.
myhost1.mydom.de.       604800  IN      A      123.123.123.201
myhost1-aaaa.mydom.de.  604800  IN      AAAA
3ffe:1:1000:2000:abc:abcd:abcd:abc1
...
...
3628800 604800
;; Query time: 9 msec
;; SERVER: 123.123.129.15#53(123.123.129.15)
;; WHEN: Wed Nov 24 15:59:31 2010
;; XFR size: 69 records (messages 1, bytes 2056)