Eu tenho o servidor Bind instalado no FreeBSD Jails. Eu tenho mestre e dois escravos. E eu tenho 4 visualizações para locais diferentes. Quando adiciono algum registro na zona master e digito rndc reload
, vejo que todas as 4 visualizações enviam atualizações:
25-Apr-2017 17:41:19.112 general: info: zone abc.am/IN/internal: loaded serial 2017042502
25-Apr-2017 17:41:19.112 notify: info: zone abc.am/IN/internal: sending notifies (serial 2017042502)
25-Apr-2017 17:41:19.113 general: info: zone abc.am/IN/external: loaded serial 2017042502
25-Apr-2017 17:41:19.113 notify: info: zone abc.am/IN/external: sending notifies (serial 2017042502)
25-Apr-2017 17:41:19.115 general: info: zone abc.am/IN/armenia: loaded serial 2017042502
25-Apr-2017 17:41:19.115 notify: info: zone abc.am/IN/armenia: sending notifies (serial 2017042502)
25-Apr-2017 17:41:19.116 general: info: zone abc.am/IN/notarmenia: loaded serial 2017042502
25-Apr-2017 17:41:19.116 notify: info: zone abc.am/IN/notarmenia: sending notifies (serial 2017042502)
Mas do lado do escravo, vejo que apenas a zona interna é atualizada:
25-Apr-2017 17:41:19.317 general: info: zone abc.am/IN/internal: transferred serial 2017042502: TSIG 'internal.ns.zone'
25-Apr-2017 17:41:19.317 notify: info: zone abc.am/IN/internal: sending notifies (serial 2017042502)
Quando digito, por exemplo, rndc retransfer abc.am IN external
, rndc retransfer abc.am IN armenia
e rndc retransfer abc.am IN notarmenia
, vejo que todas as outras três zonas são atualizadas. Eu não entendo qual é o problema. Alguma sugestão?
A configuração das minhas visualizações é a mesma:
Visão do mestre
view external IN {
notify yes;
allow-query { INTERNAL_NS; TRUSTED_NS; };
allow-transfer { key external.ns.zone.; };
match-clients { key external.ns.zone.; localhost; localnets; } ;
include "/usr/local/etc/namedb/conf/defaultzones.conf";
include "/usr/local/etc/namedb/conf/masterzones.conf";
include "/usr/local/etc/namedb/conf/slavezones.conf";
include "/usr/local/etc/namedb/conf/reversemasters.conf";
include "/usr/local/etc/namedb/conf/reverseslaves.conf";
zone "abc.am" { type master; file "/usr/local/etc/namedb/master/abc.am.external"; };
};
Visão do escravo :
view external IN {
match-clients { key external.ns.zone.; ABC_EXT; };
allow-query { ABC_EXT; };
server 10.16.16.201 { transfer-format many-answers; keys { external.ns.zone.; }; };
include "/usr/local/etc/namedb/conf/defaultzones.conf";
include "/usr/local/etc/namedb/conf/masterzones.conf";
include "/usr/local/etc/namedb/conf/slavezones-ext.conf";
include "/usr/local/etc/namedb/conf/reversemasters.conf";
include "/usr/local/etc/namedb/conf/reverseslaves-ext.conf";
zone "abc.am" {type slave; masters { NSMASTER; }; file "/usr/local/etc/namedb/slave/abc.am-view2"; };
};