|
小弟配了一个DNS用named-checkzone时发现报错如下:
dns_master_load:
/var/named/chroot/var/named/db.example:20:
unexpected
end of line
dns_master_load:
/var/named/chroot/var/named/db.example:19:
unexpected
end of input
/var/named/chroot/var/named/db.example:
file does not end with newline
zone example.com/IN: loading master file
/var/named/chroot/var/named/db.example:
unexpected end of input
小弟的zone文件是这样写的:
$TTL 86400
@ IN SOA
server1.example.com. ad50165533.yahoo.com.
(
2007032001
; serial (d. adams)
1H
; refresh
1M
; retry
1W
; expiry
1D
) ; minimum
IN NS
server1.example.com.
IN A
192.168.0.254
server1 IN A
192.168.0.254
www IN A
192.168.0.254
ftp IN A
192.168.0.254
pop IN A
192.168.0.254
www1 IN CNAME
server1.example.com.
ftp1 IN CNAME
server1.example.com.
@ IN MX 10
server1.example.com.
server1.example.com. IN MX 10
server1.example.com.
$GENERATE 1-100 station$ A 192.168.0.$
$GENERATE 1-100 CNAME station$.example.com. |
|