BIND主从配置

先给大家bind手册的地址

http://www.bind9.net/manuals


设置master

zone "test.com" IN {
	type master;
	file "/etc/named/test.com";
	allow transfer {
		192.168.10.201;
	};
	notify yes;

	also-notify {
		192.168.10.201;
	};
}

重启master


设置slave

zone "test.com" IN {
	type slave;
	file "/etc/named/test.com";
	masters {
		192.168.10.200;	
	};
}
chown -R named:named /var/named/chroot/etc/named
重启slave


如果如法同步请查看tail -f /var/log/messages

centos的sulinux

vim /etc/selinux/config

SELINUX=enforced

reboot

你可能感兴趣的:(BIND主从配置)