Resolve option 'masters' is not allowed in
'master' zone
I've enconuntered the error:
option 'masters' is not allowed in 'master' zone in
/etc/named.conf on line 41 while changing some configuration
options in a bind master name server.
The cause was really dumb!
The problem consisted in a mistake in one of my zone files
descipription in the named.conf.
The fraction with code which was interpreted wrong by
/usr/sbin/named-checkzone looked like the following:
zone "domainname.com" {
type master;
file "/var/named/chroot/var/named/masters/domainame.com"; masters {
1.2.3.4 }; };
And to be correct the above fraction of named.conf rules should
look like:
zone "domainname.com" {
type master;
file "/var/named/chroot/var/named/masters/domainname.com";
};
Hope this will be a helpful tip to somebody facing the same
error.