假设DNS服务器的IP地址是202.107.204.10,使用下面命令即可查询:
dig @202.107.204.10 txt chaos version.bind
输出结果为:
; DiG 9.2.1 @202.107.204.10 txt chaos version.bind
;; global options: printcmd
;; Got answer:
;; -HEADER
;; 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.4rc6"
;; Query time: 3 msec
;; SERVER: 202.107.204.10#53(202.107.204.10)
;; WHEN: Fri Jun 3 11:53:05 2005
;; MSG SIZE rcvd: 51
注:一般DNS服务管理员会修改BIND的版本号,此命令只适用于简单的查询,目的是让大家更多的了解dig。