我有一个根服务器,我希望我的递归服务器使用它作为根提示。所以我更改了它们的一些配置文件。以下是我在根服务器和递归服务器上更改的文件。
- 根服务器上的 db.root
1 ;
2 ; BIND data file for custom root
3 ;
4 $TTL 604800
5 @ IN SOA . nistopo.hit. (
6 2 ; Serial
7 604800 ; Refresh
8 86400 ; Retry
9 2419200 ; Expire
10 604800 ) ; Negative Cache TTL
11 ;
12 @ IN NS ns.nistopo.hit.
13 ns.nistopo.hit. IN A 10.10.11.131
- 根服务器上的 named.conf.default-zones:
// prime the server with knowledge of the root servers
2 zone "." {
3 type master;
4 file "/etc/bind/db.root";
5 };
6
7 // be authoritative for the localhost forward and reverse zones, and for
8 // broadcast zones as per RFC 1912
9
10 zone "localhost" {
11 type master;
12 file "/etc/bind/db.local";
13 };
- 递归服务器上的 root.hints
. 3600000 NS ns.nistopo.hit.
ns.nistopo.hit. 3600000 A 10.10.11.131
- 递归服务器上的 named.conf.default-zones
zone "." {
type hint;
file "/etc/bind/root.hints";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
它出什么问题了?