- 论坛徽章:
- 0
|
辅DNS为什么不能更新
实只要看看bind的文档,里面说得很清楚
- acl slave_servers { 192.168.0.2;192.168.0.3; };
- zone "mydomain.com" {
- type master;
- file "mydomain.com.zone";
- notify yes;
- allow-transfer { slave_servers; };
- also-notify { slave_servers; };
- };
复制代码
6.2.14.1
notify
If yes (the default), DNS NOTIFY messages are sent when a zone the server is authoritative for
changes, see Section 3.3. The messages are sent to the servers listed in the zone’s NS records
(except the master server identified in the SOA MNAME field), and to any servers listed in the
also-notify option.
If explicit, notifies are sent only to servers explicitly listed using also-notify. If no, no notifies
are sent.
The notify option may also be specified in the zone statement, in which case it overrides the options
notify statement. It would only be necessary to turn off this option if it caused slaves to crash.
6.2.14.6
also-notify
Defines a global list of IP addresses of name servers that are also sent NOTIFY messages whenever
a fresh copy of the zone is loaded, in addition to the servers listed in the zone’s NS records. This
helps to ensure that copies of the zones will quickly converge on stealth servers. If an also-notify
list is given in a zone statement, it will override the options also-notify statement. When a zone
notify statement is set to no, the IP addresses in the global also-notify list will not be sent NOTIFY
messages for that zone. The default is the empty list (no global notification list).
使用notify指令会自动通知所有这个域的所有在ns记录上的机器,also-notify指令可以用来通知所有不在ns记录上的dns服务器。
还是好好看文档吧,里面还有很多有趣的功能呢。 |
|