免费注册 查看新帖 |

Chinaunix

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

请高手给看一下: [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-27 09:44 |只看该作者 |倒序浏览
小弟我在做DNS服务器,现在在都已经配置完成运行的时候出现如下错误:
bash-2.05# /usr/local/named/sbin/named
Jul 27 09:31:18 test-solaris named[17803]: binding TCP socket: address in use
Jul 27 09:31:18 test-solaris last message repeated 1 time
Jul 27 09:31:18 test-solaris named[17803]: dns_rdata_fromtext: named.local:7: near eol: unexpected end of input
Jul 27 09:31:18 test-solaris named[17803]: zone 0.0.127.in-addr.arpa/IN: loading master file named.local: unexpected end of input
Jul 27 09:31:18 test-solaris named[17803]: dns_rdata_fromtext: named.1.23.172:7: near eol: unexpected end of input
Jul 27 09:31:18 test-solaris named[17803]: zone 1.23.172.in-addr.arpa/IN: loading master file named.1.23.172: unexpected end of input
Jul 27 09:31:18 test-solaris named[17803]: dns_rdata_fromtext: named.john-test.com:7: near eol: unexpected end of input
Jul 27 09:31:18 test-solaris named[17803]: zone john-test.com/IN: loading master file named.john-test.com: unexpected end of input
Jul 27 09:31:18 test-solaris named[17803]: zone localhost/IN: has no NS records
bash-2.05# ps -ef | grep named                                                     
    root 17708     1  0 18:01:21 ?        0:00 /usr/local/named/sbin/named
    root 17729     1  0 18:08:36 ?        0:01 /usr/local/named/sbin/named
    root 17704     1  0 17:59:58 ?        0:00 /usr/local/named/sbin/named
    root 17761     1  0 08:59:24 ?        0:01 /usr/local/named/sbin/named
    root 17799     1  0 09:30:29 ?        0:00 /usr/local/named/sbin/named
    root 17807 17797  1 09:34:25 pts/4    0:00 grep named
    root 17699     1  0 17:56:58 ?        0:00 ./named
    root 17719     1  0 18:04:50 ?        0:00 /usr/local/named/sbin/named
    root 17794     1  0 09:22:42 ?        0:00 /usr/local/named/sbin/named
    root 17778     1  0 09:17:07 ?        0:00 /usr/local/named/sbin/named
    root 17803     1  0 09:31:19 ?        0:00 /usr/local/named/sbin/named


我已经改了半天了,可是还是有错误,哪位高手能帮忙指点一下呀?不胜感激了!

论坛徽章:
1
寅虎
日期:2015-01-23 02:35:47
2 [报告]
发表于 2006-07-27 11:50 |只看该作者
首先,你的named可能启动了多次,都杀掉重启试试,包括系统自带的;其次,你的zone的配置可能存在问题。

论坛徽章:
0
3 [报告]
发表于 2006-07-27 14:55 |只看该作者
好的,我先试一下,谢谢斑竹!

论坛徽章:
0
4 [报告]
发表于 2006-07-27 15:39 |只看该作者
还是找不到问题!
我的named.conf如下:
key "rndc-key" {
        algorithm hmac-md5;
        secret "OdUVrip928QTFcQbEqo1sg==";
};

controls {
        inet 127.0.0.1 port 953
                allow { 127.0.0.1; } keys { "rndc-key"; };
};

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

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

zone  "localhost" {
        type master;
        file "localhost.zone";
        allow-update { none; };
};

zone  "0.0.127.IN-ADDR.ARPA" {
        type master;
        file "named.local";
        allow-update { none; };
};

zone "john-test.com" {
        type master;
        file "named.john-test.com";
        allow-update { none; };
};

zone "1.23.172.in-addr.arpa" {
       type master;
       file "named.1.23.172";
       allow-update { none; };
};

帮忙给看看吧!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP