我新建了个域叫safenet.9966.org,但是BIND死活就是不行,我一nslookup hanji.safenet.9966.org就报server can't find hanji.safenet.9966.org: SERVFAIL
以下是我的配置文件:
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";
forwarders {61.177.7.1;};
/*
* 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;
};
zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
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 "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
zone "safenet.9966.org" IN {
type master;
file "safenet.hosts";
allow-update {none;};
};
zone "75.92.222.in-addr.arpa" IN {
type master;
file "safenet.ip";
allow-update {none;};
};
include "/etc/rndc.key";
safenet.hosts正向解析文件:
$TTL 1D
$ORIGIN safenet.9966.org.
@ IN SOA ns.safenet.9966.org. root.safenet.9966.org. (
1053801162
3H
15M
1W
1D )
IN NS ns.safenet.9966.org.
ns IN A 192.168.1.1
hanji IN A 192.168.1.2
safenet.ip反向解析文件:
$TTL 86400
@ IN SOA ns.safenet.9966.org. root.safenet.9966.org. (
20031001;
7200;
3600;
43200;
86400);
IN ns.safenet.9966.org.
1 IN PTR ns.safenet.9966.org.
2 IN PTR hanji.safenet.9966.org.