- 论坛徽章:
- 0
|
原帖由 ttxx 于 2007-11-20 15:42 发表 ![]()
用的是什么版本?
如果是9.4或以上版本需要options块增加一个 allow-query { any; };
如果是9.4以下的版本请写清楚,然后发出NAMED.CONF文件看看。。要不没办法帮你回答!~
我安装的是BIND 9.4.1-P1,加上你说的allow-query { any; };还是不行。named.conf在下面。请看看。
options {
directory "/opt/dns/etc"; #named区文件目录
pid-file "named.pid"; #进程id文件名
allow-query { any; };
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndc-key; };
};
zone "." IN {
type hint;
file "named.root";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "test.com" IN {
type master;
file "test.com.zone";
allow-update { none; };
};
zone "2.9.10.in-addr.arpa" IN {
type master;
file "test.com.revzone";
allow-update { none; };
};
key "rndc-key" {
algorithm hmac-md5;
secret "**************";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; }; |
|