- 论坛徽章:
- 0
|
我有两台dns,b机负责x.com.cn域的解析,其他的全部转发到a机.
配置如下:
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
// lame-ttl 0;
};
include "/etc/rndc.key";
//初始的是这样的
//zone "." IN {
// type hint;
// file "named.root";
//};
//我觉得关键是在这里
zone "." IN {
type forward;
forward only;
forwarders { a.b.c.d; };
};
zone "localdomain" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "x.y.com.cn" IN {
type master;
file "x.y.com.cn.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "xxx.xxx.xx.in-addr.arpa" IN {
type master;
file "xxx.xxx.xx.in-addr.arpa";
allow-update { none; };
}; |
域名已经能够解析。
但是有个问题,就是当a机增加了主机项的时候,b机不能马上解析。
有没有什么选项? |
|