Given the following my BIND 9 is not able to start.
acl ns2 { 192.168.10.50; };
zone "10.168.192.in-addr.arpa" IN {
also-notify { ns2 port 53; };
type master;
file "192.168.10.db";
};
It's writing the following to the /var/log/messages file.
[root@dev bind]# tail /var/log/messages
Jan 25 18:41:05 dev named[22863]: found 4 CPUs, using 4 worker threads
Jan 25 18:41:05 dev named[22863]: using 4 UDP listeners per interface
Jan 25 18:41:05 dev named[22863]: using up to 4096 sockets
Jan 25 18:41:05 dev named[22863]: loading configuration from '/etc/named.conf'
Jan 25 18:41:05 dev named[22863]: /etc/named.conf:18: missing ';' before 'port'
Jan 25 18:41:05 dev named[22863]: /etc/named.conf:18: missing ';' before '53'
Jan 25 18:41:05 dev named[22863]: /etc/named.conf:23: missing ';' before 'port'
Jan 25 18:41:05 dev named[22863]: /etc/named.conf:23: missing ';' before '53'
Jan 25 18:41:05 dev named[22863]: loading configuration: failure
Jan 25 18:41:05 dev named[22863]: exiting (due to fatal error)
This is strange because per their guide here, the correct statement syntax is
[ also-notify { ip_addr [port ip_port] ; [ ip_addr [port ip_port] ; ... ] }; ]
I've fixed it by doing the following... If anyone knows why we now have both masters and acl, rather than just acl, please enlighten me.
You can simply change your zone as follow:
If the slave is running on another port rather than 53, you can specify if changing the allow-notify as follow:
Unless port is specified, bind send the notification to port 53.
you only need to put:
masters "acl-name" { ip1; ip2; ip3; etc;}
and then call it after with also-notify { acl-name;}; sentence.