options {
directory "/var/named";
};
zone "faker.com" IN {
type master; --類型爲主區域
file "aaa"; --區域數據文件爲aaa
allow-transfer { 192.168.1.51; }; --容許從服務器下載正向區域文件
};
zone "sherlock.com" IN {
type master;
file "bbb"
allow-transfer { 192.168.1.51; };
}:
zone "1.168.192.in-addr.arpa" IN {
type master;
file "ccc";
allow-transfer { 192.168.1.51; }; --容許從服務器下載反向區域文件
];
[root@localhost named]# cp named.localhost -P aaa
[root@localhost named]# cp named.localhost -P bbb
[root@localhost named]# cp named.localhost -P ccc