Parsing a defined separation .DNS
DNS name resolution is about the same as the separation of internal and external network resolves to a different IP address. The reality of some of the electrical network's website to give the user a better experience faster analytical results, users from different operators put the resolution to a corresponding server thus greatly enhance the access speed
Second, the purpose of the experiment
Use DNS resolution to achieve separation for different clients visit the Web site, resolves to a different host, in order to achieve load balancing purposes
Third, the specific requirements of the experiment
1, three (Host only mode), a specific role:
Centos7 (DNS servers, gateways), 192.168.100.100 (LAN test client), 12.0.0.12 (WAN test client)
2, to achieve the DNS server on Centos7, achieved when the client is a wide area network domain, parse the results of any domain name are 12.0.0.1
IV. Experimental Procedure
1. Open centos7 virtual machine, create a new network interface card (NIC setting dual reference to the previous network base portion LInux
2. to the original configuration of the first NIC address 192.168.100.1 as LAN gateway
3. Give the new card configuration address 12.0.0.1 as a WAN gateway
4. Restart Service
The address to the LAN clients with
6. WAN to the client with address
7. Enter Centos7, install the bind package
8. Modify the main configuration file dns
9. A profile modification area, the following contents are deleted
10. The master configuration file is on the root server to the shear zone configuration file
11. Copy two template file configuration zone data
12. A profile modification data area (LAN)
13. A profile modification data area (WAN)
14. Turn off the firewall, open service
15. Verify
WAN gateway address resolution is (public) of
LAN address resolution private network