|
|
我配置完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.
找了半天也不知道怎么解决配置出错的问题,谢谢 |
|