我也有一个主名称服务器设置和一些从属服务器。今天,当我遇到一条奇怪的错误消息时,我正在将其中一个从属服务器更改为新服务器。
在更新主服务器上的 DNS 记录并重新启动 BIND 后,我注意到它ns3.mydomain.com
正在尝试发送ns4.mydomain.com
通知。ns4.mydomain.com
我已经检查了配置文件,但配置文件中没有它的 IP 地址ns3.mydomain.com
。
它不应该ns1.mydomain.com
将通知发送到ns4
而不是ns3
吗?我还应该注意到,两者的 DNS 记录ns3
似乎ns4
都已更新。
这是 ns3 上的错误消息(IP 地址:)107.161.xxx.xxx
:
May 15 22:08:22 vps named[23851]: client 185.38.xxx.xxx#59396: received notify for zone 'mydomain1.com'
May 15 22:08:22 vps named[23851]: zone mydomain1.com/IN: refused notify from non-master: 185.38.xxx.xxx#59396
May 15 22:08:22 vps named[23851]: client 185.38.xxx.xxx#59396: received notify for zone 'mydomain2.com'
May 15 22:08:22 vps named[23851]: zone mydomain2.com/IN: refused notify from non-master: 185.38.xxx.xxx#59396
May 15 22:08:22 vps named[23851]: client 185.38.xxx.xxx#59396: received notify for zone 'mydomain3.com'
May 15 22:08:22 vps named[23851]: zone mydomain3.com/IN: refused notify from non-master: 185.38.xxx.xxx#59396
May 15 22:08:23 vps named[23851]: client 185.38.xxx.xxx#59396: received notify for zone 'mydomain4.com'
May 15 22:08:23 vps named[23851]: zone mydomain4.com/IN: refused notify from non-master: 185.38.xxx.xxx#59396
这是 ns4 上的错误消息(IP 地址:)185.38.xxx.xxx
:
May 15 22:08:22 uk named[572]: client 107.161.xxx.xxx#48742: received notify for zone 'mydomain1.com'
May 15 22:08:22 uk named[572]: zone mydomain1.com/IN: refused notify from non-master: 107.161.xxx.xxx#48742
May 15 22:08:22 uk named[572]: client 107.161.xxx.xxx#48742: received notify for zone 'mydomain2.com'
May 15 22:08:22 uk named[572]: zone mydomain2.com/IN: refused notify from non-master: 107.161.xxx.xxx#48742
May 15 22:08:22 uk named[572]: client 107.161.xxx.xxx#48742: received notify for zone 'mydomain3.com'
May 15 22:08:22 uk named[572]: zone mydomain3.com/IN: refused notify from non-master: 107.161.xxx.xxx#48742
May 15 22:08:22 uk named[572]: client 107.161.xxx.xxx#48742: received notify for zone 'mydomain4.com'
May 15 22:08:22 uk named[572]: zone mydomain4.com/IN: refused notify from non-master: 107.161.xxx.xxx#48742
如果您不想发送通知消息,请在
notify master-only;
部分options
中指定或notify no;
在从属定义中指定。zone
通知消息默认发送到所有区域的名称服务器(基于
NS
区域数据中的记录),除了SOA
MNAME
(另见notify-to-soa
)。我认为您需要
allow-notify { address_list };
在从属区域名称服务器的选项中应用该语句,其中'address_list'应该是主名称服务器通知消息的源IP。如文档所示,如果启用了通知,则通知消息将发送到该区域的 NS 记录中列出的每个服务器。这适用于主机和从机。