This error in syslog:
Apr 10 16:50:16 server1 named: zone example.com/IN: refresh: could not set file modification time of '/var/lib/bind/example.com.hosts': permission denied
In an effort to fix this and other issues in BIND which I will create separate issues for I've set some file permissions.
Permissions on /etc/bind are bind:bind rwxr-sr-x Permissions on files within /etc/bind are bind:bind rw-r--r--
I've set the /var/lib/bind folders on both the master and host DNS systems to bind:bind 775/rwxrwxr-x
I've set all the files within those to bind:bind 664/rw-rw-r--
To make it always create new zone files with those permissions I updated settings in Webmin > BIND DNS Server > Module Config > Zone file options:
Owner for zone files (user:group): bind:bind
Permissions for zone files (in octal): 0664
On the master system this seems to happen for any virtual servers except for the 2 sites which are hosted on the master system, there are no sites hosted on the ns2 host system and the error does also show up for those 2 sites on the ns2 host system.
I have Cloudmin Services plugin and Cloudmin 10 with Virtualmin GPL.