Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of Building DNS Master-Slave Server

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report