dns集群
辅助dns可以缓解主dns的压力,当外网主机访问主dns所维护的域名时,可以看到域名针对外网的解析的ip
辅dns
vim /etc/resolv.conf
3 nameserver 172.25.254.123 改为同步自己的
vim /etc/named.conf
11 listen-on port 53 { any ; };
17 allow-query { any; };
32 dnssec-validation no;
vim /etc/named.rfc1912.zones
19 zone "xaut.com" IN {
20 type slave; 类型辅dns
21 masters { 172.25.254.81; };
22 file "slave/xaut.com.inter";
23 allow-update { none; };
24 };
systemctl restart named
主dns
vim xaut.com.inter
1 $TTL 1D
2 @ IN SOA dns.xaut.com. root.xaut.com. (
3 1 ; serial 要修改默认不超过10位
4 1D ; refresh
5 1H ; retry
6 1W ; expire
7 3H ) ; minimum
8 NS dns.xaut.com.
9 dns A 192.168.254.125
10 www A 192.168.254.130
vim /etc/named.rfc1912.inter
19 zone "xaut.com" IN {
20 type master;
21 file "xaut.com.inter";
22 also-notify{172.25.254.123;};
23 allow-update { none; };
24 };
systemctl restart named
dig www.xaut.com