The third step of the DNS domain name resolution experiment trilogy-separate resolution

DNS separation resolution

The domain name server for separate resolution is actually the main domain name server. It mainly provides different domain name resolution records according to different clients. For example, when clients from different network segment address areas of the intranet and the extranet request to resolve the same domain name, they are provided Different analysis results get different IP addresses. (The main domain name server here is equivalent to the NAT gateway we have learned before)

experiment

(Note that all virtual machines for simulation experiments must use host mode)

Dual network card configuration

First configure dual network cards for one of the virtual machines to act as two ports of the gateway server

Here VMnet1 is used for internal network, VMnet2 is used for external network

Configure the two network cards

Because virtual machine 1 is used as a gateway server here, there is no need to set up the gateway DNS and no need to set up, so the comment method is used here.

Copy ens33 directly to ens36 and modify the IP annotation gateway and DNS

The UUID comment of 36 is because the configuration of 36 is copied from 33. If it is not commented or modified, it will conflict with 33

Then restart the network card, the configuration is complete

Main configuration file area configuration file and data file configuration

Main configuration file modification

At the same time, cut the zone "." at the end for later use

Regional configuration file modification

Need to pay attention to all the configuration must be placed within the view{} brackets

Data file modification

lan is an internal network file, wan is an external network file

Finally restart the service

Guess you like

Origin blog.csdn.net/Alen686/article/details/114224036