LinuxSir.cn,穿越时空的Linuxsir!

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

dns没有办法启动了

[复制链接]
发表于 2004-12-18 16:27:18 | 显示全部楼层 |阅读模式
显示;named failed. The error was: Stopping named: rndc: connect failed: connection refused
[FAILED]

这是什么原因?
发表于 2004-12-18 16:29:02 | 显示全部楼层
你在什么套件上运行的bind?
 楼主| 发表于 2004-12-18 16:47:15 | 显示全部楼层
redhat里面的服务,就图形界面的那个,点运行,显示运行成功(其实根本没有成功),点stop就显示那个问题了
发表于 2004-12-18 17:31:29 | 显示全部楼层
如果配置写错了,会出现以上问题,我也试过,搞了好久都没搞好

最好从网上下一些可运行的配置文件,然后改一下

或者是贴配置出来,让大家帮你看看
发表于 2004-12-18 19:12:17 | 显示全部楼层
楼主把bind的日志贴出来吧
这样最直接的
 楼主| 发表于 2004-12-18 20:14:33 | 显示全部楼层
## named.conf - configuration for bind
#
# Generated automatically by redhat-config-bind, alchemist et al.
# Any changes not supported by redhat-config-bind should be put
# in /etc/named.custom
#
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

include "/etc/named.custom";

include "/etc/rndc.key";







zone  "0.0.127.in-addr.arpa" {
        type master;
        file  "0.0.127.in-addr.arpa.zone";
};
zone  "0.168.192.in-addr.arpa" {
        type master;
        file  "0.168.192.in-addr.arpa.zone";
};


zone  "localhost" {
        type master;
        file  "localhost.zone";
};
zone  "com" {
        type master;
        file  "com.zone";
};

----------------------------------------------------------------------

$TTL 86400
@        IN        SOA        @  root.localhost (
                        1 ; serial
                        28800 ; refresh
                        7200 ; retry
                        604800 ; expire       
                        86400 ; ttl
                        )


        IN        NS        localhost.


@        IN        A        127.0.0.1

------------------------------------------------------

$TTL 86400
@        IN        SOA        localhost.        root.localhost (
                        3 ; serial
                        28800 ; refresh
                        7200 ; retry
                        604800 ; expire       
                        86400 ; ttk
                        )


@        IN        NS        localhost.

1        IN        PTR        localhost.
 楼主| 发表于 2004-12-19 12:39:41 | 显示全部楼层
在etc/named目录下。好象缺少文件,只有com.zone,0.168.192.in-addr.arpa.zone,localhost.zone,0.0.127.in-addr.arpa.zone,这4个,重装了好几次都是这样,

我用的是RedHat Enterprise Linux WS 3,bind是从redhat 9.0盘中复制的
发表于 2004-12-19 12:44:34 | 显示全部楼层

我用的是RedHat Enterprise Linux WS 3,bind是从redhat 9.0盘中复制的

从九复制过来的

WS中没有BIND?
为什么不直接用它自带的呢
或者下载BIND安装啊

这样麻烦会少很多啊!
 楼主| 发表于 2004-12-19 13:00:15 | 显示全部楼层
好象是没有,ws上面的软件不全,我记得以前从9里面复制过来还是可以用的,这次不知道什么原因不行了
 楼主| 发表于 2004-12-19 13:01:12 | 显示全部楼层
我从望上下个新点的,有空的时候,装装看。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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