- 论坛徽章:
- 0
|
系统rh9
dns.:
[root@mail log]# rpm -qa |grep bind
bind-utils-9.2.1-16
ypbind-1.11-4
redhat-config-bind-1.9.0-13
bind-9.2.1-16
[root@mail log]# rpm -qa |grep cach
caching-nameserver-7.2-7
在对named启动,停止,查看状态时
/etc/init.d/named status
rndc: connect failed: connection refused
都会有这样的错误提示。
我的配置文件
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
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; };
};
include "/etc/rndc.key";
此方法已经试过还是无效
有一個rndc: connect failed: connection refused
這個問題的話。
您可以將/etc/rndc.key這個檔案裡的內容貼到named.conf裡然後重新啟動1~2次即可。 |
|