Jak sprawdzić wersję serwera DNS zdalnie

Jak chcesz sprawdzić wersję serwera DNS zdalnie, możesz skorzystać z komendy dig -t txt -c chaos VERSION.BIND @DNS_SERVER

Przykłady:

user@ubuntu:/etc$ dig -t txt -c chaos VERSION.BIND @193.0.80.11

; <<>> DiG 9.7.0-P1 <<>> -t txt -c chaos VERSION.BIND @193.0.80.11
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43369
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;VERSION.BIND.			CH	TXT

;; ANSWER SECTION:
VERSION.BIND.		0	CH	TXT	"9.3.5-P2"

;; AUTHORITY SECTION:
VERSION.BIND.		0	CH	NS	VERSION.BIND.

;; Query time: 15 msec
;; SERVER: 193.0.80.11#53(193.0.80.11)
;; WHEN: Tue Dec 21 10:17:18 2010
;; MSG SIZE  rcvd: 65
user@ubuntu:/etc$ dig -t txt -c chaos VERSION.BIND @192.168.12.1

; <<>> DiG 9.7.0-P1 <<>> -t txt -c chaos VERSION.BIND @192.168.12.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21631
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;VERSION.BIND.			CH	TXT

;; ANSWER SECTION:
VERSION.BIND.		0	CH	TXT	"dnsmasq-2.15-OpenDNS-1"

;; Query time: 1 msec
;; SERVER: 192.168.12.1#53(192.168.12.1)
;; WHEN: Tue Dec 21 10:17:44 2010
;; MSG SIZE  rcvd: 65

Niestety nie zawsze to działa ;). Np, google nam nie odpowie:

user@ubuntu:/etc$ dig -t txt -c chaos VERSION.BIND @8.8.8.8

; <<>> DiG 9.7.0-P1 <<>> -t txt -c chaos VERSION.BIND @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 64100
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;VERSION.BIND.			CH	TXT

;; Query time: 43 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue Dec 21 10:28:21 2010
;; MSG SIZE  rcvd: 30

Dodaj komentarz

Twój adres e-mail nie zostanie opublikowany. Wymagane pola są oznaczone *