I assume you mean in a jail as you don't install software on FreeNAS itself. If so, you should be able to install the unbound pkg or port within the jail. A google search shows that there are several FreeBSD unbound tutorials out there (a FreeNAS jail is really just an instance of FreeBSD).