免费注册 查看新帖 |

Chinaunix

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

[DNS] 求助rndc问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-06 21:32 |只看该作者 |倒序浏览
我是用bind-9.3.4编译安装
安装后出现rndc问题:
[root@123 root]#/usr/local/bind/sbin/rndc reload
rndc: connect failed: 127.0.0.1#953: connection refused


    请问如何解决!!!

论坛徽章:
0
2 [报告]
发表于 2007-07-06 22:19 |只看该作者
named   没有启动吧

ps -A  看看 named 起来没有。

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
3 [报告]
发表于 2007-07-07 20:41 |只看该作者
可能要自己重新打造 rndc key 跟設定 rndc.conf 囉。

论坛徽章:
0
4 [报告]
发表于 2007-07-07 23:08 |只看该作者
我的named  启动不了啊

            我应该怎么版啊

论坛徽章:
0
5 [报告]
发表于 2007-07-07 23:34 |只看该作者

论坛徽章:
0
6 [报告]
发表于 2007-07-08 00:48 |只看该作者
问题已经解决啦

         我在配置rndc.key时


     Use with the following in named.conf, adjusting the allow list as needed:
     也加上,  后来把他给去掉 就 可以启动服务啦

           服务启动后  rndc命令  也可以  正常使用啦

             谢谢大家的帮忙!!!

[ 本帖最后由 qwe777 于 2007-7-8 00:50 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2007-07-08 00:54 |只看该作者
启动后  

       我查看日子:

Jul  8 01:19:40 Folie named[2361]: starting BIND 9.3.4 -c /etc/named.conf
Jul  8 01:19:40 Folie named[2361]: loading configuration from '/etc/named.conf'
Jul  8 01:19:40 Folie named[2361]: no IPv6 interfaces found
Jul  8 01:19:40 Folie named[2361]: listening on IPv4 interface lo, 127.0.0.1#53
Jul  8 01:19:40 Folie named[2361]: listening on IPv4 interface eth0, 192.168.1.2#53
Jul  8 01:19:40 Folie named[2361]: command channel listening on 127.0.0.1#953
Jul  8 01:19:40 Folie named[2361]: dns_rdata_fromtext: named.local:2: near eol: unexpected end of input
Jul  8 01:19:40 Folie named[2361]: zone 0.0.127.in-addr.arpa/IN: loading master file named.local: unexpected end of input
Jul  8 01:19:40 Folie named[2361]: dns_rdata_fromtext: 1.168.192:2: near eol: unexpected end of input
Jul  8 01:19:40 Folie named[2361]: zone 1.168.192.in-addr.arpa/IN: loading master file 1.168.192: unexpected end of input
Jul  8 01:19:40 Folie named[2361]: dns_rdata_fromtext: breakout.com.cn:3: near eol: unexpected end of input
Jul  8 01:19:40 Folie named[2361]: zone breakout.com.cn/IN: loading master file breakout.com.cn: unexpected end of input
Jul  8 01:19:40 Folie named[2361]: dns_rdata_fromtext: localhost.zone:3: near eol: unexpected end of input
Jul  8 01:19:40 Folie named[2361]: zone localhost/IN: loading master file localhost.zone: unexpected end of input
Jul  8 01:19:40 Folie named[2361]: running

        这样是否正常

[ 本帖最后由 qwe777 于 2007-7-8 01:29 编辑 ]

论坛徽章:
0
8 [报告]
发表于 2007-07-08 01:34 |只看该作者
08-Jul-2007 01:32:17.618 running
08-Jul-2007 01:32:28.443 shutting down
08-Jul-2007 01:32:28.443 stopping command channel on 127.0.0.1#953
08-Jul-2007 01:32:28.444 no longer listening on 127.0.0.1#53
08-Jul-2007 01:32:28.444 no longer listening on 192.168.1.2#53
08-Jul-2007 01:32:28.446 exiting

论坛徽章:
0
9 [报告]
发表于 2007-07-08 11:36 |只看该作者
Jul  8 01:19:40 Folie named[2361]: dns_rdata_fromtext: named.local:2: near eol: unexpected end of input
Jul  8 01:19:40 Folie named[2361]: zone 0.0.127.in-addr.arpa/IN: loading master file named.local: unexpected end of input
Jul  8 01:19:40 Folie named[2361]: dns_rdata_fromtext: 1.168.192:2: near eol: unexpected end of input
Jul  8 01:19:40 Folie named[2361]: zone 1.168.192.in-addr.arpa/IN: loading master file 1.168.192: unexpected end of input
Jul  8 01:19:40 Folie named[2361]: dns_rdata_fromtext: breakout.com.cn:3: near eol: unexpected end of input
Jul  8 01:19:40 Folie named[2361]: zone breakout.com.cn/IN: loading master file breakout.com.cn: unexpected end of input
Jul  8 01:19:40 Folie named[2361]: dns_rdata_fromtext: localhost.zone:3: near eol: unexpected end of input
Jul  8 01:19:40 Folie named[2361]: zone localhost/IN: loading master file localhost.zone: unexpected end of input




配置文档有好多语法错误哦
时不时每一行的结尾没有  ;  
检查一下

论坛徽章:
0
10 [报告]
发表于 2007-07-08 14:11 |只看该作者
我把文件修改后 bind 就可以正常工作啦  

       谢谢```  

[root@Folie root]# named -gc /etc/named.conf
08-Jul-2007 14:07:52.240 starting BIND 9.3.4 -gc /etc/named.conf
08-Jul-2007 14:07:52.248 loading configuration from '/etc/named.conf'
08-Jul-2007 14:07:52.264 no IPv6 interfaces found
08-Jul-2007 14:07:52.264 listening on IPv4 interface lo, 127.0.0.1#53
08-Jul-2007 14:07:52.265 binding TCP socket: address in use
08-Jul-2007 14:07:52.265 listening on IPv4 interface eth0, 192.168.1.2#53
08-Jul-2007 14:07:52.265 binding TCP socket: address in use
08-Jul-2007 14:07:52.281 /usr/local/bind/etc/rndc.key:7: couldn't add command channel 127.0.0.1#953: address in use
08-Jul-2007 14:07:52.281 ignoring config file logging statement due to -g option08-Jul-2007 14:07:52.283 zone 0.0.127.in-addr.arpa/IN: loaded serial 2007070801
08-Jul-2007 14:07:52.284 zone 1.168.192.in-addr.arpa/IN: loaded serial 2007070801
08-Jul-2007 14:07:52.285 zone breakout.com.cn/IN: loaded serial 2007070801
08-Jul-2007 14:07:52.286 zone localhost/IN: loaded serial 42
08-Jul-2007 14:07:52.287 running


08-Jul-2007 14:07:54.851 shutting down
08-Jul-2007 14:07:54.852 no longer listening on 127.0.0.1#53
08-Jul-2007 14:07:54.852 no longer listening on 192.168.1.2#53
08-Jul-2007 14:07:54.853 exiting
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP