免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
1234
最近访问板块 发新帖
楼主: 朽木可雕
打印 上一主题 下一主题

[DNS] 辅DNS为什么不能更新 [复制链接]

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
31 [报告]
发表于 2004-07-11 21:55 |只看该作者

辅DNS为什么不能更新

Jul 10 07:17:52.670 xfer-out: info: client 10.1.2.43#32776: transfer of '2.1.10.in-addr.arpa/IN': AXFR-style IXFR started

看到上面那行, 那你就可以肯定了.

论坛徽章:
0
32 [报告]
发表于 2004-07-11 23:09 |只看该作者

辅DNS为什么不能更新

谢谢各位的耐心相助。我现在才明白,也许从一开始MASTER和SLAVE的同步就是好的。只是我一直以为,修改了区域文件以后不需要重启或rndc reload他们自己就会同步。真是不好意思,由于我的无知给大家添了那么多麻烦,向各位道歉了。

论坛徽章:
0
33 [报告]
发表于 2004-07-12 15:34 |只看该作者

辅DNS为什么不能更新



你不重启,即使你怎么改配置文件,主服务器不会知道有更改,从服务器更无从知道。

当然,人总是要慢慢前进的,这也很正常。
问题解决了就好。

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
34 [报告]
发表于 2004-07-13 02:01 |只看该作者

辅DNS为什么不能更新

呵呵呵呵。。。。  

看了那么老长的帖子和回复,居然是这样的结果!晕倒!
不过新手是这样慢慢进步的!呵呵。。。

论坛徽章:
0
35 [报告]
发表于 2004-07-13 09:06 |只看该作者

辅DNS为什么不能更新

让各位见笑了,不好意思。刚刚接触DNS。

论坛徽章:
0
36 [报告]
发表于 2004-07-15 06:41 |只看该作者

辅DNS为什么不能更新

实只要看看bind的文档,里面说得很清楚

  1. acl slave_servers { 192.168.0.2;192.168.0.3; };

  2. zone "mydomain.com" {
  3.         type master;
  4.         file "mydomain.com.zone";
  5.         notify yes;
  6.         allow-transfer { slave_servers; };
  7.         also-notify { slave_servers; };
  8. };
复制代码


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服务器。
还是好好看文档吧,里面还有很多有趣的功能呢。

论坛徽章:
0
37 [报告]
发表于 2008-03-28 09:25 |只看该作者
帖子都沉了 四年了啊 被我发现了。o(∩_∩)o...
刚开始区域配置文件里只有一条ns记录 重新启动named服务时 竟然能够同步成功?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP