Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of Building DNS Master-Slave Server

Shulou Source: shulou.com Published: 2022-06-02 00:25:52 10月01日 Update

How to build a DNS master-slave server? Many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can gain something.

1. Rpm

1. Installation of the software package

Rpm-ivh bind-9.3.rpm-ivh bind-utilsrpm-ivh caching-nameserver

2. Modification of configuration file

Modify the named.conf file to add forward and reverse resolution of the domain zhang.com

Vi / etc/named.confzone "zhang.com" IN {type master;file "zhang.zone"; allow-update {none;}; allow-transfer {10.167.27.91;}; # # this line means that 10.167.27.91 replication is allowed. If you don't do slave, you can remove it! Notify yes; # # enable notification, and updates will be notified to slave server also-notify {10.167.27.91;};}; zone "27.167.10.in-addr.arpa" IN {type master;file "zhang.local"; allow-update {none;}; allow-transfer {10.167.27.91;}; # # ditto notify yes # when notification is enabled, updates will be notified to slave server also-notify {10.167.27.91;};}

3. Modify the contents of zhang.zone file:

[root@localhost named] # vi / var/named/zhang.zone$TTL 86400 @ IN SOA zhang.com. Root.zhang.com. (1997022700; Serial28800; Refresh14400; Retry3600000; Expire86400); Minimum@ IN NS zhang.com. Www IN A 10.167.27.91

5. Modify the contents of zhang.local file:

[root@localhost named] # vi / var/named/zhang.localTTL 86400 @ IN SOA zhang.com. Root.zhang.com. (1997022700; Serial 28800; Refresh 14400; Retry 3600000; Expire 86400); Minimum@ IN NS zhang.com.91 IN PTR www.zhang.com.

II. Configuration of Slave DNS

Zone "zhang.com" IN {

Type slave

File "slaves/zhang.zone"

Masters {10.167.27.193;}; # # specify the address of the slave server

}

Zone "27.167.10.in-addr.arpa" IN {

Type slave

File "slaves/zhang.local"

Masters {10.167.27.193;}; # # ditto!

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Server service file advertisement content help update configuration master-slave method clear line address this article novice more knowledge industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL macOS Xiaomi Microsoft Linux