How to test BIND version running on DNS server?

BIND, or Berkley Internet Name Domain, is an Internet naming system used for DNS, which allows you to find the sites you are looking for. BIND contains entries for DNS names, so for example, if you type into your browser, the record tells your browser at what IP address to find the site. If you need to test BIND version running on DNS server, you can use next commands:


nslookup -q=txt -class=CHAOS version.bind


#dig -t txt -c chaos VERSION.BIND @

After this, you should get next answers


version.bind    text =
version.bind    nameserver = version.bind

The Linux users will have more details about server

[root@server ~]# dig -t txt -c chaos VERSION.BIND @
; <<>> DiG 9.3.4-P1 <<>> -t txt -c chaos VERSION.BIND @
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44906
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;VERSION.BIND.                  CH      TXT
VERSION.BIND.           0       CH      TXT     "9.3.4-P1"
VERSION.BIND.           0       CH      NS      VERSION.BIND.
;; Query time: 54 msec
;; WHEN: Mon Mar 23 20:09:57 2009
;; MSG SIZE  rcvd: 65

To hide your version of bind, add the following value to named.conf (now the commands shown above won’t return Bind version)

options {
version "[SECURED]";

Save named.conf and restarted named.

Remember the fact that Bind is the most popular Internet naming system but not the only one…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.