我启动BIND时给出这样的错误提示:
zone yao.com/IN: loading master file name2ip.conf: file not found
_default/yao.com/IN: file not found
zone C.B.A.in-addr.arpa/IN: loading master file ip2name.conf: file not found_default/C.B.A.in-addr.arpa/IN: file not found
请问是哪出了问题.
/etc/named.conf
//
// named.conf for Red Hat caching-nameserver
//
options {
directory "/var/named";
//dump-file "/var/named/data/cache_dump.db";
//statistics-file "/var/named/data/named_stats.txt";
/*
* 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; };
};
include "/etc/rndc.key";
zone "yao.com" {
type master;
file "name2ip.conf";
allow-update { none; };
};
zone "C.B.A.in-addr.arpa" {
type master;
file "ip2name.conf";
allow-update { none; };
};
/var/named/name2ip.conf
$TTL 1D
$ORIGIN mail.yao.com.
@ IN SOA mail.yao.com. root.mail.yao.com.
(2000062900;
28800;
14400;
3600000;
86400);
@ IN NS mail.yao.com.
@ IN MX 10 mail.yao.com.
www.yao.com. IN A A.B.C.D
IN MX 10 mail.yao.com.
mail.yao.com. IN A A.B.C.D
IN MX 10 mail.yao.com.
dns.yao.com. IN A A.B.C.D
IN MX 10 mail.yao.com.
yao.com. IN A A.B.C.D
IN MX 10 mail.yao.com.
yao. IN A A.B.C.D
IN MX 10 mail.yao.co
/var/named/ip2name.conf
$TTL 86400
$ORIGIN C.B.A.IN-ADDR.ARPA.
@ IN SOA email.yao.com. root.email.yao.com.
(2000062900;
28800;
14400;
3600000;
86400);
IN NS mail.yao.com.
IN MX 10 mail.yao.com.
D IN PTR www.yao.com
IN MX 10 mail.yao,com
D.C.B.A.IN-ADDR.ARPA. IN PTR www.yao.com.
IN MX 10 mail.yao.com.