Help needed with script to verify the version of BIND

I have tried thought of using instfix -ivqc | grep BIND , but this did not return the result I was looking for; it seem to list out the the different patches that had been applied to BIND. I'm actually looking for overall version, like you'd get when checking the OS level for instance.

if your version is recent then

named -v 

should tell you (you may need the full path to named if it is not in your path i.e. /usr/local/sbin/named -v)
otherwise look here for some interesting pointers:
The FreeBSD Diary -- What version of bind are you running?