The FreeBSD Diary |
![]() |
(TM) | Providing practical examples since 1998If you buy from Amazon USA, please support us by using this link. |
|
What version of bind are you running?
3 April 2000
|
|
If you are running a name server, chances are it's bind (Berkeley
Internet Name Domain) which implements the Domain Name System (DNS) protocols.
Normally, the executable is called named. For more information on bind,
see the bind home page at http://www.isc.org/products/BIND/. I found this little gem whilst idling in undernet's #freebsd IRC channel. It's a quick way of finding out what version of bind you are running without having to restart bind. $ nslookup -q=txt -class=CHAOS version.bind. 0 Server: ducky.nz.freebsd.org Address: 0.0.0.0 VERSION.BIND text = "8.2.2-P5" |
|
Other bind gems
4 April 2000
|
| Dan Harnett wrote in with this information. Thanks for sharing. dig can also be used to determine the version of bind.
Also, with recent versions of bind, the following is possible:
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:
|
|
Tell bind what version it is
6 April 2000
|
Renato Murilo Langona wrote in to mention this very nice solution:
|
|
Restrict access to the version command
6 April 2000
|
Henk Wevers wote about using ACL to control who can get the version:
|
|
Listing the zone files
20 May 2000
|
Alex Root wrote in to say this:
|