env:
master--10.86.6.178
slave--10.86.6.213
domain--stella.com
1. yum install bind
2. vi /etc/named.conf
listen-on port 53 { 127.0.0.1;10.86.6.213; };
allow-query { localhost; 10.86.6.0/24; };
.
.
.
.
.
zone "." IN {
type hint;
file "named.ca";
};
zone "stella.com" IN {
type slave;
file "slaves/zone-stella.com";
masters { 10.86.6.178; };
};
zone "6.86.10.in-addr.arpa" IN {
type slave;
file "slaves/zone-10.86.6.0";
masters { 10.86.6.178; };
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
3. named-checkconf /etc/named.conf
4. disable firewall & SELinux
5. systeemctl restart named
systemctl enable named
6. if success, the files in the /var/named/slave will be updated by the time