Reasonable configuration of DNS allows the internal network to access the two networks correctly

  
        

The author's school shares the Internet through ADSL routing. The external gateway and DNS are 10.0.0.138, the external network port IP address is 10.0.0.1, and the subnet mask is 255.255.255.0. The self-built website is placed on the server. On the server,

has been installed and set up with IIS, and the default website"IP address points to 10.0.0.1.

In the default state, you can access the external network, but you cannot access the internal network. If the workstation DNS is set to the internal website address (that is, the server IP address is 10.0.0.1), the intranet can be accessed but the external network cannot be accessed. So how can we make all workstations access both the external network and the internal network?

We know that DNS is a huge distributed database, which provides a domain name information through the domain name server. The resolution, the domain name server is responsible for converting the domain name to an IP address, so we only need to pay attention to the order of the workstation DNS when setting up TCP/IP, this problem can be easily solved.

Set each workstation in the LAN to: IP address is 10.0.0.x, subnet mask is 255.255.255.0, gateway is 10.0.0.138. Set the "preferred DNS server" to 10.0.0.1 and set the "alternate DNS server" to 10.0.0.138, which is the access principle of "inside and outside", so that after all the settings are completed, all workstations will be You can access the external network and access the internal network.

Copyright © Windows knowledge All Rights Reserved