linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

FIGS .dns a separate analytical and experimental FIG understood

linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

linux as a gateway to do analytical separation

External WAN area
within the LAN area analysis

According to the visitor different regions of the same domain name to resolve to get a different address

NAT address translation
my private address by converting to make a tag port, converted
into a public IP address, all of our own host with the
public network address can go out, but came back how to distinguish to which host
PAT This mode is address translation a model port ~~

1. We are simulations, require VM virtual machine, Centos7, two hosts as a win10 -1 WAN host, a local area network as win10 -2 host

2. Centos7 to add a piece of card, only the host mode set to

linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

3. Check the NIC did not go up, the card is set to VMnet8 only host mode

linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

4. The other two hosts are set to the master mode only

linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

5. Restart our host, and then see if there is the newly added card

linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

6. Remember to restart our two hosts and Centos7

7. into our ens33 modify the configuration information in the card

linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)
linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

8. Enter we have just added a new card in the ens36

Delete the mac address, address to the public address of 12.0.0.1

linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

9. Restart network services, see the card information

systemctl restrt network

linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

10. Set ip address and default gateway for win10 -1

linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

11. Set the ip address and default gateway for win10 -2

linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

12. win10-1 ping test with which the internal URLs, URL outside using the ping which win10-2

linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

13. The master configuration file to the configuration Centos7

vim /etc/named.conf

linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

14. A data configuration file configuration zone

vim /etc/named.rfc1912.zones

linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

15. Data area configuration profile

cd / var / named

cp -p named.localhost kgc.com.lan
came kgc.com.lan
linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

16. The configuration of the second data area data configuration file

cp -p kgc.com.lan kgc.com.wan
came kgc.com.wan
linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

17. Turn off the firewall, turn off enhancements, open the service, check the service status

linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)
linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

18. to win 10-1 LAN hosts can resolve to address

linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

19. host to win 10-2 WAN can resolve to address

linux-Centos7 DNS parse isolated (wide area networks and local networks of different address with a domain name)

These are all our content, thank you watch

Guess you like

Origin blog.51cto.com/14449524/2435587