分类: LINUX
2014-08-18 13:39:59
原文地址:如何查询自己或者别的 DNS 服务器的 BIND 版本? 作者:ailms
用 dig 命令或者
nslookup 命令
dig txt chaos version.bind
@
例1 :查询自己的 DNS 服务器版本
root@dns-internal.bob.com => root]#dig txt chaos version.bind
@localhost
;
<<>> DiG 9.2.1 <<>> txt chaos version.bind @localhost
;;
global options: printcmd
;;
Got answer:
;;
->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47894
;;
flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;;
QUESTION SECTION:
;version.bind. CH TXT
;;
ANSWER SECTION:
version.bind.
0 CH TXT
"9.2.1"
;;
Query time: 2 msec
;;
SERVER: 127.0.0.1#53(localhost)
;;
WHEN: Sun Apr 30 09:58:35 2006
;;
MSG SIZE rcvd: 48
[root@dns-internal.bob.com
=> root]#
[root@dns-internal.bob.com => root]#dig txt chaos version.bind
@A.ROOT-SERVERS.NET
;
<<>> DiG 9.2.1 <<>> txt chaos version.bind
@A.ROOT-SERVERS.NET
;;
global options: printcmd
;;
Got answer:
;;
->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48136
;;
flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;;
QUESTION SECTION:
;version.bind. CH TXT
;;
ANSWER SECTION:
VERSION.BIND.
0 CH TXT
"VGRS2"
;;
Query time: 261 msec
;;
SERVER: 198.41.0.4#53(A.ROOT-SERVERS.NET)
;;
WHEN: Sun Apr 30 09:59:32 2006
;;
MSG SIZE rcvd: 60
[root@dns-internal.bob.com
=> root]#