分类: LINUX
2011-01-25 09:10:24
主DNS
/var/named/chroot/etc/named.conf
==================================
options {
directory "/var/named";
};
zone "test.com"{
type master;
file "test.com.zone";
allow-transfer {辅DNSip;};
};
zone "18.168.192.in-addr.arpa"{
type master;
file "test.com.192.168.18";
allow-transfer {辅DNSip;};
};
辅助DNS
在主DNS /var/named/chroot/etc/named.conf中
allow-transfer {辅DNS的IP;}; #必须有
==============================
options {
directory "/var/named";
};
zone "test.com"{
type slave;
file "test.com.zone";
masters {ip;};
};
zone "18.168.192.in-addr.arpa"{
type slave;
file "test.com.192.168.18";
masters {ip;};
};
==============================
修改named文件夹权限
cd /var
chmod -R 770 named/