4.ipconfig(windows工具)
ipconfig /flushdns //清空dns缓存 ipconfig /displaydns //显示dns缓存信息 ipconfig /release //释放ipv4地址 ipconfig /renew //更新ipv4地址 (5)配置主从复制1.从服务器配置
#vim /etc/named.conf zone "testdns.com" IN { type slave; //类型从 masters { 192.168.1.32; }; //指定master服务器ip地址 file "slaves/testdns.com.zone"; //数据文件放置在哪里 }; #systemctl restart named2.主服务器配置
#vim /etc/named.conf zone "testdns.com" IN { type master; file "testdns.com.zone"; allow-transfer { 192.168.1.33; }; };