Fedora8上运行DNS的问题
安装后经过修改,named.conf 文件为:
[root@localhost named]# cat /etc/named.conf
options {
directory "/var/named";
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "test.com" IN {
type master;
file "test";
allow-update { none; };
};
zone "5.168.192.in-addr.arpa" IN {
type master;
file "arpa";
allow-update { none; };
};
include "/etc/rndc.key";
test文件为:
[root@localhost named]# cat test
$TTL 86400
test.com. IN SOA dns.test.com. amdin.test.com. (
2006061200;
10800;
3600;
604800;
38400 );
test.com. IN NS dns.test.com.
dns.test.com. IN A 192.168.5.55
www.test.com. IN A 192.168.5.80
ftp.test.com. IN A 192.168.5.21
mail.test.com. IN A 192.168.5.23
arpa文件为:
[root@localhost named]# cat arpa
$TTL 86400
5.168.192.in-addr.arpa. IN SOA dns.test.com. admin.test.com. (
2008061000;
10800;
3600;
604800;
38400 );
5.168.192.in-addr.arpa. IN NS dns.test.com.
55.5.168.192.in-addr.arpa. IN PTR dns.test.com.
80 IN PTR www.test.com.
21 IN PTR ftp.test.com.
23 IN PTR mail.test.com.
但是检测时出现:
[root@localhost named]# named-checkconf /etc/named.conf
[root@localhost named]# named-checkconf test
test:1: unknown option '$TTL'
test:4: unknown option '10800'
test:5: unknown option '3600'
test:6: unknown option '604800'
test:7: unknown option '38400'
test:9: unknown option 'test.com.'
test:15: unexpected token near end of file
[root@localhost named]# named-checkconf arpa
arpa:1: unknown option '$TTL'
arpa:4: unknown option '10800'
arpa:5: unknown option '3600'
arpa:6: unknown option '604800'
arpa:7: unknown option '38400'
arpa:9: unknown option '5.168.192.in-addr.arpa.'
arpa:14: unexpected token near end of file
[root@localhost named]#
[root@localhost named]# named-checkzone test test
test:2: ignoring out-of-zone data (test.com)
test:9: ignoring out-of-zone data (test.com)
test:11: ignoring out-of-zone data (dns.test.com)
test:12: ignoring out-of-zone data (www.test.com)
test:13: ignoring out-of-zone data (ftp.test.com)
test:14: ignoring out-of-zone data (mail.test.com)
zone test/IN: has 0 SOA records
zone test/IN: has no NS records
[root@localhost named]# named-checkzone 5.168.192.in-addr.arpa arpa
zone 5.168.192.in-addr.arpa/IN: loaded serial 2008061000
OK
[root@localhost named]#
也能启动:
[root@localhost named]# /etc/init.d/named restart
停止 named: [确定]
启动 named: [确定]
[root@localhost named]#
就是解析不了www.test.com 的域名
错在哪里,请知道者指点一二,多谢了!!!!