Building DNS load balancing service RHEL6

Source: Internet
Author: User
Tags domain transfer

Build a DNS load balancing environment:

1. At least three linux virtual machines, one primary DNS server, one secondary (N), and one testing machine.

There are many types of Server Load balancer. apache puts too much pressure on the server when people access the website, so when you visit the website, you can check the server. I will check it, we work in turn.

2. DNS load balancing principle: when several DNS servers are connected together, it is like the relationship between the upper and lower levels. He is killed. On top of you, you are killed, and on top of me .. Always guarantee continuous service.

 

Suggestion: if your computer has 4 GB of memory and each VM has 400 mb of memory, the graphical interface will be shut down, otherwise it will be very slow, the graphic memory usage is reduced to 70%.

Notes:

 

Make sure that the three hosts can be pinged to each other.

Pay special attention to ";" when editing files

3. First, install the bind software package, start the named service, and clear the fire wall.

 

DNS master server configuration: (IP 192.168.7.110)

4. Edit the naemd. conf file: (modify only these items)

5. Edit the named. rf1912.zones file: (copy the preceding five rows for modification)

 

Allow-transfer: Specifies the host that allows domain transfer with the local server.

 

6. Restart the DNS server: (OK if no error is reported)

Configure the secondary DNS server: ip 192.168.7.22

 

8. The front side is almost the same. 4. Edit the naemd. conf file: (only modify these items)

 

5. Edit the named. rf1912.zones file: (copy the preceding five rows for modification)

 

Slave: the meaning of the domain service dictionary: membership .. Slaves

 

Restart the named service:

 

Testing Machine:

 

Primary DNS resolution

The test machine is very simple, with a resolution, it will be OK :( ip192.168.7.110 is the primary DNS server)

 

Is it OK?

Test whether the secondary DNS is OK?

Resolution secondary DNS

 

 

 

 

 

 

 

 

 

 

 

 

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.