Additional supplement on automatic synchronization between DNS master and slave servers

Additional supplement on automatic synchronization between DNS master and slave servers

1. Three configuration files of DNS

rpm -qc bind                   //查询bind软件配置文件所在路径
/etc/named.conf                //主配置文件
/etc/named/rfc1912.zonrs       //区域配置文件
/var/named/named.localhost     //区域数据配置文件

2. Case introduction

View domain name resolution on the main server(Vim /etc/resolve.conf, plus the address of the master-slave dns server)
Insert picture description here
Insert picture description here

Modify the zone data configuration file vim /var/named/gg.com.zone of the main server
Insert picture description here

View dns acquisition on the main server
Insert picture description here

View the update time of the data configuration file of the slave serverAnd did not update sync
Insert picture description here

Modify the zone configuration file and zone data configuration file of the main server
Insert picture description here
Insert picture description here

Validation results
Insert picture description here

==Supplement: named-checkconf check file syntax format==
named-checkconf [/etc/named.conf]

Guess you like

Origin blog.csdn.net/weixin_53567573/article/details/114060740