LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 717|回复: 1

关于dns配置出错的问题

[复制链接]
发表于 2005-11-8 10:12:26 | 显示全部楼层 |阅读模式
我配置完DNS后,启动后使用cat /var/log/messages 发现有错误信息 
dns_rdata_fromtext:db.10.2.2:7 near eol:unexpected end of input
zone 2.1.10.in-addr.arpa/IN : loading master file db.10.1.2 :unexpected end of input
zone test.com/IN :loading master file db.test:unexpected end of input
========named.conf部分内容===================
zone "test.com" IN {
type master;
file "db.test";
};
zone "2.1.10.in-addr.arpa" IN {
type master;
file "db.10.1.2";
};
======db.test====
$TTL 86400
@ IN SOA linux9.test.com.root.linux9.test.com.(
2004111001; serial
10800; refresh after 3 hours
3600  ; retry after 1 hour
604800 ; expire after 1 week
864000 );
IN NS linux9.test.com.
IN A  10.1.2.249
linux9 IN A 10.1.2.249
test2  IN A 10.1.2.248
WWW IN A 10.1.2.249
FTP IN A 10.1.2.249
====db.10.1.2===================
$TTL 86400
@ IN SOA  linux9.test.com.root.linux9.test.com.(
2004111001; serial
10800; refresh after 3 hours
3600  ; retry after 1 hour
604800 ; expire after 1 week
864000 );
IN NS linux9.test.com.
249.2.1.10.in-addr.arpa IN PTR linux9.test.com.
248.2.1.10.in-addr.arpa IN PTR test2.test.com.
找了半天也不知道怎么解决配置出错的问题,谢谢
发表于 2005-11-8 13:24:08 | 显示全部楼层
@ IN SOA linux9.test.com.root.linux9.test.com.这行应该有一个空格吧
@ IN SOA linux9.test.com. root.linux9.test.com.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表