DNS使用BIND和DHCP的全面指南
1. BIND区域委派
为了减轻BIND主服务器的负载,可以将区域委派给其他服务器。这些服务器将成为被委派区域的主服务器。例如,对于example.com,va.example.com可以委派给弗吉尼亚州的一台服务器,tx.example.com可以委派给德克萨斯州的主服务器。以下是设置BIND区域委派的示例:
- 主BIND服务器(example.com)的named.conf文件 :
zone "example.com" {
type master;
file "master/master.example.com";
};
zone "tx.example.com" {
type slave;
file "slave/slave.tx.example.com";
masters {10.1.2.53;};
};
- 主服务器上的example.com区域文件 :
$TTL 1d ; default TTL is 1 day
$ORIGIN example.com.
@ IN SOA ns1.example.com. admin.example.com. (
100 ; serial number
2h ;