Skip to content

bind9 DNS主从服务器配置

2010 七月 19
by 荒野无灯



BIND9,添加A记录后如何自动(不重启服务)生效?

1
rndc reload

或者

1
rndc reload  域名

,如果直接用rndc reload,重新加载所有域信息

下面看下配置:
主DNS服务器IP: 172.40.200.13 (实际上测试应该用内网地址的,这里的172.40是属于公网IP了。。。。。真不知学校当时怎么规划的,杯具。 :roll:
从DNS服务器IP: 172.40.200.11

主DNS的named.conf.local 相关内容如下 :

1
2
3
4
5
6
7
zone "13.caonima.com" {
        type master;
        file "/etc/bind/db.13.caonima.com";
        allow-transfer { 172.40.200.11;};
        notify yes;
        also-notify{172.40.200.11;};
};

从DNS服务器:
view named.conf.local

1
2
3
4
5
zone "13.caonima.com" IN {
        type slave;
        file "/etc/bind/slaves/13.caonima.com";
        masters{ 172.40.200.12;};
};

这里只以正解为例了,反解原理之此类似。

喜欢这篇文章吗?

请订阅本站 RSS feed填写您的邮件地址,订阅我们的精彩内容:,欢迎点击这里捐赠以支持荒野无灯转播到腾讯微博 转播到腾讯微博

作者:荒野无灯
出处:Hacklog【Hacklog】

声明: 本站遵循 署名-非商业性使用-相同方式共享 3.0 共享协议. 转载请注明转自Hacklog【荒野无灯weblog】

本文链接: http://ihacklog.com/?p=4009

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <q cite=""> <strong>

 :wink:  :-|  :-x  :twisted:  :)  8-O  :(  :roll:  :-P  :oops:  :-o  :mrgreen:  :lol:  :idea:  :-D  :evil:  :cry:  8)  :arrow:  :-?  :?:  :!:

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS