How to automatically add this folowing directive to /etc/bind/named.conf.local every new domain is added in ISPConfig3? zone "somedomain.tld" { type master; file "/etc/bind/pri.somedomain.tld"; allow-update { key "update"; }; allow-query { any; }; allow-transfer { trusted-servers; }; notify yes; } Because if I added manually using nano editor, when new domain is added, the directive addedd previously will be lost, because iit is rewritten by ISPCOnfig3.
Copy the template file /usr/local/ispconfig/server/conf/bind_named.conf.local.master to the conf-custom/ directory and make your changes to there.
As @Jesse Norell said. The main reason you should not change bind 9 files manually in ISPConfig dns server is because they are actually kept and maintained via its database, not its files. The files will be changed if the database is changed. The conf-custom folder is the best way to maintain customisation for your bind 9 files as it is update proof but always beware of any improvement to its default templates if they are fixes in the future releases.