zone "fang.com" IN {
type master;
file "fang.com.zone";
allow-transfer {slaves;}; # 允许哪些从服务器从主服务器同步数据
};
===== 从服务器 =====
==== 更改/etc/named.conf ====
zone "fang.com" IN {
type slave; # 备用节点
masters { 10.0.2.10; }; # 指定主节点
file "slaves/fang.com.zone"; # 数据文件保存路径
};