免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 19726 | 回复: 9
打印 上一主题 下一主题

[DNS] rndc:connect failed connection refused怎么办? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-07-13 19:05 |只看该作者 |倒序浏览
我用的是redhat9.0 个人版,
service named start  没有什么反应
service named status 出现rndc:connect failed connection refused
从网上查了一下,说是这个就可以

1.  rndc-confgen >; rndc.conf 生成新的rndc.conf里边有相应的key

2.  打开rndc.conf,复制里边的

key "rndckey" {

 algorithm hmac-md5;

secret "EGe9C8EGOvO90VLgB1XGxw==";

};       

4.复制到rndc.key中生成新的key

我就是这样做的。
cd /etc
rndc-confgen>;rndc.conf
vi rndc-confgen
复制里面的key到rndc.key里面
把/etc/rndc.key里面的key删除了。
重起两次
起动dns还是这样,

论坛徽章:
0
2 [报告]
发表于 2005-07-14 02:10 |只看该作者

rndc:connect failed connection refused怎么办?

我把日志也帖上来大侠给分析一下.
Jul 13 04:13:38 IBM named[2847]: using 1 CPU
Jul 13 04:13:38 IBM  7月 13 04:13:38 named: named 启动 succeeded
Jul 13 04:13:38 IBM named[2847]: loading configuration from '/etc/named.conf'
Jul 13 04:13:38 IBM named[2847]: no IPv6 interfaces found
Jul 13 04:13:38 IBM named[2847]: listening on IPv4 interface lo, 127.0.0.1#53
Jul 13 04:13:38 IBM named[2847]: listening on IPv4 interface eth0, 210.75.112.138#53
Jul 13 04:13:38 IBM named[2847]: could not configure root hints from 'named.ca': file not found
Jul 13 04:13:38 IBM named[2847]: loading configuration: file not found
Jul 13 04:13:38 IBM named[2847]: exiting (due to fatal error)
Jul 13 04:13:38 IBM kernel: Device not ready.  Make sure there is a disc in the drive.
我用的是redhat9.0是在 2000下用vmware5.0虚拟的.
named.ca什么动动?
应该是dns的配置文件吧.高手告诉我应该这么

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
3 [报告]
发表于 2005-07-14 02:16 |只看该作者

rndc:connect failed connection refused怎么办?

嗯? rpm -qa | grep cachingnameser 看到啥?

论坛徽章:
0
4 [报告]
发表于 2005-07-14 03:54 |只看该作者

rndc:connect failed connection refused怎么办?

楼上的大哥,我查了。rpm -qa | grep cachingnameser
没有。
cachingnameser是什么东西。安装他就可以了么?

论坛徽章:
0
5 [报告]
发表于 2005-07-14 03:55 |只看该作者

rndc:connect failed connection refused怎么办?

IBM kernel: Device not ready.  Make sure there is a disc in the drive
这个日志是什么意思?怎么说我的设备没就绪呢。

论坛徽章:
0
6 [报告]
发表于 2005-07-14 05:09 |只看该作者

rndc:connect failed connection refused怎么办?

为了让大虾分析,我把/etc/rndc.conf /etc/rndc.key /etc/rndc.costom /etc/named.conf
都贴出来,
*********************rndc.conf*********************

# Start of rndc.conf
key "rndc-key" {
        algorithm hmac-md5;
        secret "8a74dha7ByNAge2xyMHUCQ==";
};

options {
        default-key "rndc-key";
        default-server 127.0.0.1;
        default-port 953;
};
# End of rndc.conf

# Use with the following in named.conf, adjusting the allow list as needed:
# key "rndc-key" {
#       algorithm hmac-md5;
#       secret "8a74dha7ByNAge2xyMHUCQ==";
# };
#
# controls {
#       inet 127.0.0.1 port 953
#               allow { 127.0.0.1; } keys { "rndc-key"; };
# };
# End of named.conf


*******************************rndc.key*************************


key "rndc-key" {
        algorithm hmac-md5;
        secret "8a74dha7ByNAge2xyMHUCQ==";
};

********************************named.conf******************


     
   
      
## 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";

********named.custom*********************
## named.custom - custom configuration for bind
#
# Any changes not currently supported by redhat-config-bind should be put
# in this file.


zone  "." {
        type hint;
        file  "named.ca";
};

options {
        directory "/var/named/";
};



***********************/var/log/messages*************
[root@IBM root]# tail /var/log/messages
Jul 13 06:47:09 IBM named[2094]: using 1 CPU
Jul 13 06:47:09 IBM  7月 13 06:47:09 named: named 启动 succeeded
Jul 13 06:47:09 IBM named[2094]: loading configuration from '/etc/named.conf'
Jul 13 06:47:09 IBM named[2094]: no IPv6 interfaces found
Jul 13 06:47:09 IBM named[2094]: listening on IPv4 interface lo, 127.0.0.1#53
Jul 13 06:47:09 IBM named[2094]: listening on IPv4 interface eth0, 210.75.112.138#53
Jul 13 06:47:09 IBM named[2094]: could not configure root hints from 'named.ca': file not found
Jul 13 06:47:09 IBM named[2094]: loading configuration: file not found
Jul 13 06:47:09 IBM named[2094]: exiting (due to fatal error)
Jul 13 06:47:10 IBM kernel: Device not ready.  Make sure there is a disc in the drive.

**************************************************
named.ca就什么文件?我觉得就是他的问题.大虾告诉我这么解决阿,受不了了.

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
7 [报告]
发表于 2005-07-14 09:19 |只看该作者

rndc:connect failed connection refused怎么办?

named.ca 是 root dns 服务器列表文件,需要从网上下载,地址是:ftp://ftp.internic.net/domain/named.cache

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
8 [报告]
发表于 2005-07-14 10:20 |只看该作者

rndc:connect failed connection refused怎么办?

因為你是 redhat, 裝一下這個 caching-nameserver 的 rpm 就好了.

p.s.
不好意思, 上一篇漏了一個 - 號呢...

论坛徽章:
0
9 [报告]
发表于 2010-01-21 20:09 |只看该作者
原帖由 網中人 于 2005-7-14 10:20 发表
因為你是 redhat, 裝一下這個 caching-nameserver 的 rpm 就好了.

p.s.
不好意思, 上一篇漏了一個 - 號呢...



[root@linux-dns ~]# rpm -qa |grep caching-nameserver
caching-nameserver-9.3.4-10.P1.el5
[root@linux-dns ~]# service named status
rndc: connect failed: 127.0.0.1#953: connection refused
named is stopped
[root@linux-dns ~]#
我的安装了,为什么也会出现这个问题呢?

论坛徽章:
0
10 [报告]
发表于 2010-01-21 20:18 |只看该作者
看<扫描系列之  擅用BIND日志。。。>
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP