免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2359 | 回复: 13

[DNS] dns 出错请大家帮忙 [复制链接]

论坛徽章:
0
发表于 2009-04-14 23:06 |显示全部楼层
[root@Ssdisk ~]# /usr/local/sbin/named -gc /etc/named.conf
14-Apr-2009 23:00:03.581 starting BIND 9.5.0 -gc /etc/named.conf
14-Apr-2009 23:00:03.581 found 2 CPUs, using 2 worker threads
14-Apr-2009 23:00:03.586 loading configuration from '/etc/named.conf'
14-Apr-2009 23:00:03.586 /etc/named.conf:14: unknown option 'Use'
14-Apr-2009 23:00:03.587 /etc/named.conf:25: unknown option 'End'
14-Apr-2009 23:00:03.587 /etc/named.conf:27: unexpected token near end of file
14-Apr-2009 23:00:03.587 loading configuration: unexpected token
14-Apr-2009 23:00:03.587 exiting (due to fatal error)

NAMED 启动不起来

这个是什么错误.我的DNS配置文件看不懂
那位大峡给发个
再此谢过了

论坛徽章:
0
发表于 2009-04-14 23:08 |显示全部楼层
14-Apr-2009 23:00:03.586 /etc/named.conf:14: unknown option 'Use'
14-Apr-2009 23:00:03.587 /etc/named.conf:25: unknown option 'End'
14-Apr-2009 23:00:03.587 /etc/named.conf:27: unexpected token near end of file

配置文件有问题。

论坛徽章:
0
发表于 2009-04-14 23:15 |显示全部楼层

回复 #1 ssdisk 的帖子

named.conf 的14 25 27行问题

论坛徽章:
0
发表于 2009-04-14 23:22 |显示全部楼层
options {

directory "/var/bind";

};

zone "." {

type hint;

file "named.ca";

};
Use with the following in named.conf, adjusting the allow list as
needed:
key "rndc-key" {
       algorithm hmac-md5;
       secret "SOsaarfo1Wacl5EEjgLQUw==";
};

controls {
       inet 127.0.0.1 port 953
               allow { 127.0.0.1; } keys { "rndc-key"; };
};
End of named.conf

论坛徽章:
0
发表于 2009-04-14 23:24 |显示全部楼层
改掉错误行 还是出现这个现象

[root@Ssdisk etc]# /usr/local/sbin/named -g
14-Apr-2009 23:21:24.047 starting BIND 9.5.0 -g
14-Apr-2009 23:21:24.047 found 2 CPUs, using 2 worker threads
14-Apr-2009 23:21:24.050 loading configuration from '/etc/named.conf'
14-Apr-2009 23:21:24.050 /etc/named.conf:15: unknown option 'needed:'
14-Apr-2009 23:21:24.050 loading configuration: failure
14-Apr-2009 23:21:24.050 exiting (due to fatal error)
[root@Ssdisk etc]#

论坛徽章:
0
发表于 2009-04-14 23:31 |显示全部楼层
4-Apr-2009 23:21:24.050 /etc/named.conf:15: unknown option 'needed:'

- -这不还是有错误嘛

论坛徽章:
0
发表于 2009-04-14 23:36 |显示全部楼层
改了出现这个错误



[root@Ssdisk ~]# /usr/local/sbin/named -g
14-Apr-2009 23:33:48.487 starting BIND 9.5.0 -g
14-Apr-2009 23:33:48.487 found 2 CPUs, using 2 worker threads
14-Apr-2009 23:33:48.490 loading configuration from '/etc/named.conf'
14-Apr-2009 23:33:48.491 listening on IPv4 interface lo, 127.0.0.1#53
14-Apr-2009 23:33:48.493 listening on IPv4 interface eth0, 172.16.0.250#53
14-Apr-2009 23:33:48.495 could not configure root hints from 'named.ca': file not found
14-Apr-2009 23:33:48.495 loading configuration: file not found
14-Apr-2009 23:33:48.495 exiting (due to fatal error)

论坛徽章:
0
发表于 2009-04-14 23:40 |显示全部楼层
晕,log上面不是说了"could not configure root hints from 'named.ca': file not found "

论坛徽章:
0
发表于 2009-04-14 23:49 |显示全部楼层
你就找里面有not 或者errar之类的语句,看那些都是什么,然后对应修改就是了

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
发表于 2009-04-15 09:19 |显示全部楼层
Use with the following in named.conf, adjusting the allow list as
needed:

删除或者注释掉
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP