DNS Advanced Deployment: Using Rsync deployment to build DNS view master-slave services

Source: Internet
Author: User
Tags file permissions rsync

First, the early topology map planning

DNS dual NIC; eth0:192.168.6.248 eth1:192.168.7.248

Telecom users: 192.168.6.X this network segment analog IP address 6.248 6.244

Unicom Users: 192.168.7.X This network segment analog IP address 7.248 7.244

Other users: any

Site Cluster Address:

Telecom Access: 192.168.1.1 192.168.1.2

Netcom Visit: 192.168.2.1 192.168.2.1

Other users: 192.168.3.1 192.168.3.1

Second, the configuration of rsync services,

1, first what is rsync services?

Rsync is a file synchronization and transmission tool under a UNIX system. Rsync is a quick way to use the rsync algorithm to provide a file synchronization between a client and a remote file server.

The characteristics of rsync:

Ability to update entire directory and tree file systems

Selective protection symbolic links, hard connections, file permissions, etc.

Supports anonymous rsync sync files, ideal for mirrored backup tools.

2. The Rsync service is a non independent service,

3. First install rsync service

Yum-y Install xinet* rsysnc*

4, and then on the main DNS to create rsync configuration file/etc/rsyncd.conf, in the following figure,/etc/rsyncd.conf is the main configuration of rsync,/etc/rsyncd.secrets virtual account and password;/etc/ RSYNCD.MOTD is a warning prompt. Note that the permission for this three file is 600. As shown in the detailed configuration

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/DNS/

5, and then restart the service;

6, then create the files on the primary DNS that require rsync synchronization, and give the appropriate directory permissions as shown in the figure:

7, and then synchronize the configuration files created on primary DNS on secondary DNS, as shown on secondary DNS, DNS is installed, and synchronized files are synchronized.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.