LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 510|回复: 0

named与rndc的问题

[复制链接]
发表于 2005-3-22 18:30:12 | 显示全部楼层 |阅读模式
我安装了redhat 9.0,现在安装的named可能出了问题,大家看看怎么办吧?
这是named.conf,原来/etc目录下只有named.custom,我自己添加了named.conf

  1.       1 ## named.custom - custom configuration for bind
  2.       2
  3.       3 zone  "." {
  4.       4         type hint;
  5.       5         file  "named.ca";
  6.       6 };
  7.       7
  8.       8 options {
  9.       9         directory "/var/named/";
  10.      10
  11.      11 forwarders{
  12.      12         211.68.71.4;
  13.      13         211.68.71.5;
  14.      14 };
  15.      15 };
  16.      16
  17.      17 key localhost {
  18.      18         algorithm "hmac-md5";
  19.      19         secret "0cC3x5KJdikA3xLH4KiwXg==";
  20.      20 };
  21.      21
  22.      22 controls {
  23.      23         inet 127.0.0.1 allow { localhost; } keys { localhost; };
  24.      24 };
  25.      25
  26.      26
  27.      27
复制代码

这是rndc.conf

  1. 18 /* $Id: rndc.conf,v 1.7 2001/01/09 21:40:45 bwelling Exp $ */
  2.      19
  3.      20 /*
  4.      21  * Sample rndc configuration file.
  5.      22  */
  6.      23 key localhost {
  7.      24         algorithm       "hmac-md5";
  8.      25         secret  "0cC3x5KJdikA3xLH4KiwXg==";
  9.      26 };
  10.      27
  11.      28 options {
  12.      29         default-server  localhost;
  13.      30         default-key     localhost;
  14.      31 };
  15.      32
  16.      33 server localhost {
  17.      34         key     localhost;
  18.      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

请大家帮我看看吧 ?谢谢了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表