Dig ist unter Linux / Mac ein Tool mit dem DNS Abfragen ausgeführt werden können. Die ist of hilfreich um fehlerhafte Einstellungen auf DNS Servern zu finden.
Einfache Abfrage: dig howto-blog.net
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Denniss-MacBook-Pro:~ Dennis$ dig howto-blog.net ; <<>> DiG 9.8.3-P1 <<>> howto-blog.net ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47143 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;howto-blog.net. IN A ;; ANSWER SECTION: howto-blog.net. 20872 IN A 217.115.140.80 ;; Query time: 64 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) ;; WHEN: Fri Jun 6 10:03:39 2014 ;; MSG SIZE rcvd: 48 |
Zone transfer abfrage: dig ns howto-blog.net
Die DNS Server zu einer Domain finden.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
Denniss-MacBook-Pro:~ Dennis$ dig ns howto-blog.net ; <<>> DiG 9.8.3-P1 <<>> ns howto-blog.net ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41732 ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;howto-blog.net. IN NS ;; ANSWER SECTION: howto-blog.net. 17781 IN NS ns22.routing.net. howto-blog.net. 17781 IN NS ns9.routing.net. howto-blog.net. 17781 IN NS ns8.routing.net. howto-blog.net. 17781 IN NS ns21.routing.net. howto-blog.net. 17781 IN NS ns.routing.net. ;; Query time: 39 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) ;; WHEN: Fri Jun 6 10:08:08 2014 ;; MSG SIZE rcvd: 131 |
Reverse Lookup: dig -x 217.115.140.80
Zu einer IP die zugehörige Domain finden.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Denniss-MacBook-Pro:~ Dennis$ dig -x 217.115.140.80 ; <<>> DiG 9.8.3-P1 <<>> -x 217.115.140.80 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22736 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;80.140.115.217.in-addr.arpa. IN PTR ;; ANSWER SECTION: 80.140.115.217.in-addr.arpa. 21599 IN PTR ds217-115-140-80.dedicated.hosteurope.de. ;; Query time: 43 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) ;; WHEN: Fri Jun 6 10:12:12 2014 ;; MSG SIZE rcvd: 99 |
DNS Server: dig @ns.routing.net howto-blog.net
Spezifischen DNS Server abfragen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
Denniss-MacBook-Pro:~ Dennis$ dig @ns.routing.net howto-blog.net ; <<>> DiG 9.8.3-P1 <<>> @ns.routing.net howto-blog.net ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62808 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;howto-blog.net. IN A ;; ANSWER SECTION: howto-blog.net. 86400 IN A 217.115.140.80 ;; Query time: 37 msec ;; SERVER: 213.160.64.64#53(213.160.64.64) ;; WHEN: Fri Jun 6 10:17:42 2014 ;; MSG SIZE rcvd: 48 |