Dig Benutzung & Optionen: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 37: | Zeile 37: | ||
;; WHEN: Thu Sep 06 14:52:36 CEST 2018 | ;; WHEN: Thu Sep 06 14:52:36 CEST 2018 | ||
;; MSG SIZE rcvd: 259 | ;; MSG SIZE rcvd: 259 | ||
==Diverse Befehle== | |||
root@foxriver:~# dig <op> <ip/domain> | |||
{| Border=1 Cellpadding=2 | |||
| +nocomments | |||
|Entfernt die Kommentarzeilen | |||
|- | |||
| +noautorithy | |||
|Entfernt die "authority section" | |||
|- | |||
| +noadditional | |||
|Entfernt die "additional section" | |||
|- | |||
| +nostats | |||
|Entfernt statistiken wie z.B. Query time | |||
|- | |||
| ANY | |||
|Gibt alle DNS-Records aus | |||
|- | |||
| +short | |||
|Gibt nur die IP-Adresse der Domain aus | |||
|- | |||
| -x <IP> | |||
|Reverse DNS | |||
|- | |||
| @ns1.redhat.com | |||
|Benutzt den angegebenen DNS-Server | |||
|} | |||
Version vom 7. September 2018, 08:59 Uhr
Verwendung
Der Befehl dig (domain information groper) ist ein Werkzeug zum Abfragen von DNS-Nameservern nach Informationen über Hostadressen, Mail-Austausch, Nameserver und verwandte Informationen.
Einfacher dig
root@foxriver:~# dig www.heise.de
; <<>> DiG 9.11.3-1ubuntu1.1-Ubuntu <<>> www.heise.de ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8783 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 5, ADDITIONAL: 5 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;www.heise.de. IN A ;; ANSWER SECTION: www.heise.de. 4633 IN A 193.99.144.85 ;; AUTHORITY SECTION: heise.de. 75312 IN NS ns2.pop-hannover.net. heise.de. 75312 IN NS ns.heise.de. heise.de. 75312 IN NS ns.plusline.de. heise.de. 75312 IN NS ns.s.plusline.de. heise.de. 75312 IN NS ns.pop-hannover.de. ;; ADDITIONAL SECTION: ns.heise.de. 80614 IN A 193.99.145.37 ns.heise.de. 80614 IN AAAA 2a00:e68:14:800::d1ce ns.pop-hannover.de. 5014 IN A 193.98.1.200 ns2.pop-hannover.net. 61671 IN A 62.48.67.66 ;; Query time: 0 msec ;; SERVER: 10.80.0.2#53(10.80.0.2) ;; WHEN: Thu Sep 06 14:52:36 CEST 2018 ;; MSG SIZE rcvd: 259
Diverse Befehle
root@foxriver:~# dig <op> <ip/domain>
| +nocomments | Entfernt die Kommentarzeilen |
| +noautorithy | Entfernt die "authority section" |
| +noadditional | Entfernt die "additional section" |
| +nostats | Entfernt statistiken wie z.B. Query time |
| ANY | Gibt alle DNS-Records aus |
| +short | Gibt nur die IP-Adresse der Domain aus |
| -x <IP> | Reverse DNS |
| @ns1.redhat.com | Benutzt den angegebenen DNS-Server |