4 个视图的 Bind 问题

4 个视图的 Bind 问题

我在 FreeBSD Jails 上安装了 Bind 服务器。我有主人和两个奴隶。我有 4 个不同位置的视图。当我在主区域上添加一些记录并键入时,rndc reload我看到所有 4 个视图都发送更新:

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)

但从从机端我看到只有内部区域被更新:

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)

当我输入 example 时rndc retransfer abc.am IN externalrndc retransfer abc.am IN armeniarndc retransfer abc.am IN notarmenia看到所有 3 个其他区域都已更新。我不明白问题是什么。有什么建议吗?

我的视图配置是相同的:

大师的观点

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"; };
};

奴隶的观点

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"; };
};

相关内容