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