|
|
我安装了redhat 9.0,现在安装的named可能出了问题,大家看看怎么办吧?
这是named.conf,原来/etc目录下只有named.custom,我自己添加了named.conf
- 1 ## named.custom - custom configuration for bind
- 2
- 3 zone "." {
- 4 type hint;
- 5 file "named.ca";
- 6 };
- 7
- 8 options {
- 9 directory "/var/named/";
- 10
- 11 forwarders{
- 12 211.68.71.4;
- 13 211.68.71.5;
- 14 };
- 15 };
- 16
- 17 key localhost {
- 18 algorithm "hmac-md5";
- 19 secret "0cC3x5KJdikA3xLH4KiwXg==";
- 20 };
- 21
- 22 controls {
- 23 inet 127.0.0.1 allow { localhost; } keys { localhost; };
- 24 };
- 25
- 26
- 27
复制代码
这是rndc.conf
- 18 /* $Id: rndc.conf,v 1.7 2001/01/09 21:40:45 bwelling Exp $ */
- 19
- 20 /*
- 21 * Sample rndc configuration file.
- 22 */
- 23 key localhost {
- 24 algorithm "hmac-md5";
- 25 secret "0cC3x5KJdikA3xLH4KiwXg==";
- 26 };
- 27
- 28 options {
- 29 default-server localhost;
- 30 default-key localhost;
- 31 };
- 32
- 33 server localhost {
- 34 key localhost;
- 35 };
复制代码
现在出现这种问题:
Stopping named: rndc: connect failed: connection refused
[FAILED]
[root@localhost root]# /etc/init.d/named start
[root@localhost root]# [ OK ]
[root@localhost root]# rndc reload
rndc: connect failed: connection refused
请大家帮我看看吧 ?谢谢了! |
|