遇到 bind DNS 的 Master 与 Slave 不能同步更新问题
2010-07-26 23:47
316 查看
Master 配置 好了测试也正常了
Slave 第一次也能生成 Zone 正反向文件 .但就是奇怪.
在 Master 端修改了加大了 Serial number ,但 Slave 就是不同步.
最后才发现原来是这个问题:
最后修改了下Master 的 Zone 文件
添加了 Master 和 Slave 的 NS 记录.. 为啥要ns记录.看上上面的官方解释
Slave 第一次也能生成 Zone 正反向文件 .但就是奇怪.
在 Master 端修改了加大了 Serial number ,但 Slave 就是不同步.
最后才发现原来是这个问题:
zone "mydomain.com" { type master; file "mydomain.com.zone"; notify yes; allow-transfer { slave_servers; }; also-notify { slave_servers; }; };[/code:1:11bf6b342c] 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服务器。 还是好好看文档吧,里面还有很多有趣的功能呢。
最后修改了下Master 的 Zone 文件
[root@ye810 /]# vi /var/named/named.baidu.com $TTL 3600 @ IN SOA baidu.com. huithe.163.com. ( 445 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum @ IN NS linux.baidu.com.; @ IN NS window.baidu.com.; linux IN A 192.168.1.200; window IN A 192.168.1.201; yehuiming IN A 111.111.111.111; mytxt IN TXT "fuck you"; wenwen IN CNAME yehuiming; love IN CNAME yehuiming; xxoo IN CNAME yehuiming; ooo IN CNAME yehuiming; yindang IN CNAME yehuiming; 51 IN CNAME yehuiming; 56 IN CNAME linux; 55 IN CNAME window;
添加了 Master 和 Slave 的 NS 记录.. 为啥要ns记录.看上上面的官方解释
相关文章推荐
- bind 9 安装 配置 master slave .. 不是很难,但其中也遇到些问题。。耗费了点时间解决
- svn太久,更新了svn,遇到代码同步的问题
- 对智能DNS的master和slave同步的一点总结
- Hadoop Master/Slave部署遇到的问题与解决方法
- mysql-master/slave同步问题:Slave_IO_Running: No
- centos 6.2安装bind 9.8.2master、slave与自动修改后更新
- android 开发中遇到的错误及解决方式(更新R.java文件不能自动更新问题)
- elasticsearch集群中的slave节点不能发现master节点的问题解决
- ubuntu下安装hadoop3.0.0,slave不能连接master,master可以连接slave问题解决
- [转载] mysql5.6 删除之前的ibdata1文件后再重新生成,遇到[Warning] Info table is not ready to be used. Table 'mysql.slave_master_info' cannot be opened.问题
- SQL Server实时同步更新远程数据库遇到的问题
- 关于更改js文件浏览器不能同步更新的问题
- 多数据库 master-slave 不同步问题总结
- bind9 dns智能解析 for windows 2003 master/slave dns配置
- SQL Server实时同步更新远程数据库遇到的问题
- centos 6.2安装bind 9.8.2 master、slave与自动修改后更新
- BIND Master/Slave DNS 與 View 的搭配
- mysql的master和slave主从同步问题总结
- 自定义Domain Service时遇到实体不能更新的问题及其解决方案
- eclipse在更新新版本svn之后,导致svn不能同步问题