VMware for DNS parsing based separation (illustrated in detail +) on Centos7

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

image.png



2. to the original configuration of the first NIC address 192.168.100.1 as LAN gateway

image.png





3. Give the new card configuration address 12.0.0.1 as a WAN gateway

image.png



4. Restart Service

image.png





The address to the LAN clients with

image.png



6. WAN to the client with address

image.png



7. Enter Centos7, install the bind package

image.png



8. Modify the main configuration file dns

image.png



9. A profile modification area, the following contents are deleted

QQ图片20190904115557.png



10. The master configuration file is on the root server to the shear zone configuration file

image.png



11. Copy two template file configuration zone data

image.png



12. A profile modification data area (LAN)

image.png



13. A profile modification data area (WAN)


image.png




14. Turn off the firewall, open service


image.png



15. Verify

WAN gateway address resolution is (public) of

QQ图片20190904123610.png



LAN address resolution private network

image.png


Guess you like

Origin blog.51cto.com/14469918/2435414
Recommended