|
今天做了DNS的实验。在设置从远程主机rndc控制DNS服务器的时候,测试了一天一直没有调试好。
有关配置的条件是:
1、不允许其他主机传输数据。 2、对192.168.4.0/24主机实现递归查询。3、设置能从192.168.4.74实现rndc控制DNS服务器。
有关环境:SUSE Linux Enterprise Server 10, Bind 9 。
我的named.conf配置如下,请大家帮忙看看是那里错误。谢谢!
key "rndc-key" {
algorithm hmac-md5;
secret "W3zq5KgmHGw+9WXmGr/2gA==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1;192.168.4.74; } keys { "rndc-key"; };
};
options {
directory "/var/lib/named";
dump-file "/var/log/named_dump.db";
statistics-file "/var/log/named.stats";
notify no;
allow-recursion { 192.168.4.0/24; };
allow-transfer { none; };
};
zone "." in {
type hint;
file "root.hint";
};
zone "localhost" in {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
zone "mytest1.com" in {
type master;
file "master/mytest1.com";
};
zone "4.168.192.in-addr.arpa" in {
type master;
file "master/192.168.4.29";
};
include "/etc/named.conf.include"; |
|