| Dan Harnett wrote in with this information. Thanks for sharing. dig
can also be used to determine the version of bind.
$ dig @ducky.nz.freebsd.org version.bind chaos txt
; <<>> DiG 8.2 <<>> @ducky.nz.freebsd.org version.bind chaos txt
; (1 server found)
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0,
ADDITIONAL: 0
;; QUERY SECTION:
;; version.bind, type = TXT, class = CHAOS
;; ANSWER SECTION:
VERSION.BIND. 0S CHAOS TXT "8.2.2-P5"
;; Total query time: 325 msec
;; FROM: mail.wzrd.com to SERVER: ducky.nz.freebsd.org
203.79.82.27
;; WHEN: Mon Apr 3 09:25:51 2000
;; MSG SIZE sent: 30 rcvd: 63
Also, with recent versions of bind, the following is possible:
$ named -v
named 8.2.2-P5-NOESW Mon Jan 24 13:43:58 EST 2000
danh@noc.wzrd.com:/usr/obj/usr/src/usr.sbin/named
[Ed. note: sometimes named is not in the path, such as on my box, and you have to
specify /usr/local/sbin/named.]
If you wish to hide what version is given in reply, just edit /usr/src/contrib/bind/Version
and recompile from /usr/src/usr.sbin/named. Here is an example of what
you can do:
$ dig @ns.wzrd.com version.bind chaos txt
; <<>> DiG 8.2 <<>> @ns.wzrd.com version.bind chaos txt
; (1 server found)
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0,
ADDITIONAL: 0
;; QUERY SECTION:
;; version.bind, type = TXT, class = CHAOS
;; ANSWER SECTION:
VERSION.BIND. 0S CHAOS TXT "Wizard Communication Systems"
;; Total query time: 1 msec
;; FROM: mail.wzrd.com to SERVER: ns.wzrd.com 206.99.165.2
;; WHEN: Mon Apr 3 09:26:21 2000
;; MSG SIZE sent: 30 rcvd: 83
|