免费注册 查看新帖 |

Chinaunix

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

[求助] rndc: connect failed: connection refused [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-10-05 19:52 |只看该作者 |倒序浏览
在设置DNS服务时遇到的问题:
[root@localhost tomsui]# /etc/init.d/named start
[root@localhost tomsui]# /etc/init.d/named restart         [  确定  ]
停止 named:rndc: connect failed: connection refused
                                                           [失败]
[root@localhost tomsui]#                                   [  确定  ]


麻烦帮忙看一下哪里出了问题, 我搞了好久也没搞好,不胜感激!!!!
我做的一些设置如下:

[root@localhost tomsui]# cat /etc/hosts
127.0.0.1       localhost.localdomain   localhost
                                                                                                                                                                                    
[root@localhost tomsui]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search localdomain
nameserver 192.168.1.100
nameserver 202.106.0.20
nameserver 202.106.46.151

[root@localhost tomsui]# cat /etc/named.conf
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                options {
        directory "/var/named";
        
      listen-on port 53{
         127.0.0.1
         192.168.1.100
      };
       forward first;
       forwaders {202.106.0.20; 202.106.46.151};                                                                                                                                                                                    
};
                                                                                                                                                                                    
controls {
     inet 127.0.0.1 allow {localhost;} keys {"rndc-key"};};
                                                                                                                                                                                    
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";
};
                                                                                                                                                                                    
zone "localdomain"  in {                  
        type master;
        file "named.localdomain";
};
                                                                                                                                                                                    
zone "0.168.192.in-addr.arpa" in {         
        type master;
        file "named.ip";
};

include "/etc/rndc.key";              



[root@localhost tomsui]# cat /etc/rndc.conf
# Start of rndc.conf
key "rndc-key" {
        algorithm hmac-md5;
        secret "zk2eDUQU7//PGffCPAvSpw==";
};

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


[root@localhost tomsui]# cat /etc/rndc.key
# Use with the following in named.conf, adjusting the allow list as needed:
key "rndc-key" {
       algorithm hmac-md5;
       secret "zk2eDUQU7//PGffCPAvSpw==";
};
#
controls {
       inet 127.0.0.1 port 953
               allow { 127.0.0.1; } keys { "rndc-key"; };
};
# End of named.conf






以上是我做的配置,如果有需要,我再把/var/named中的文件贴出来, 摆脱大家了,我实在搞不出来了.........

[ 本帖最后由 frlssimi 于 2006-10-5 19:57 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-10-05 23:36 |只看该作者
看看你的bind的启动日志,在/var/log/messages里面有

看你的配置文件里面似乎有重复的,把named.conf里面的

controls {
     inet 127.0.0.1 allow {localhost;} keys {"rndc-key"};};
         
去掉试试
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP