|
帮忙看一下,rh linux 9.0照着书配的DNS,但总是failed
named.conf文件:
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "linux.net" IN {
type master;
file "linux.net.hosts";
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "192.168.0.rev";
};
include "/etc/rndc.key";
linux.net.hosts文件:
$TTL 86400
@ IN SOA www.linux.net. root.www.linux.net.
(
1053891162;
28800;
14400;
3600000;
86400;
)
IN NS www.linux.net.
www IN A 192.168.0.201
rh IN A 192.168.0.202
192.168.0.rev文件:
$TTL 86400
@ IN SOA www.linux.net. root.www.linux.net.
(
1053891162
28800;
14400;
3600000;
86400;
)
IN NS www.linux.net.
201 IN PTR www.linux.net.
202 IN PTR rh.linux.net.
请各位高手帮忙看一下,是配置文件有问题,还是少配了东西.
还有一个问题,每次service named restart时,屏幕显示的是"NAMED已在运行",而不是像其他服务显示"服务停止 确定 服务启动 确定",这是否正常?
|
|