update logic in named.conf template