My school uses ADSL to set a route to share the internet. The Internet gateway and DNS are 10.0.0.138, the Internet 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. IIS has been installed and configured on the server. The "default website" ip address points to 10.0.0.1.
By default, you can access the Internet, but cannot access the Intranet. If you set the wks DNS to an internal website address (that is, the server IP address 10.0.0.1), you can access the Intranet, but cannot access the Internet. So how can we enable all the work stations to access both the Internet and the Intranet?
As we know, DNS is a huge distributed database, which provides a designated domain information through the Domain Name Server for domain name resolution. The Domain Name Server is responsible for converting the domain name to an IP address, therefore, we only need to pay attention to the sequence of wks DNS when setting TCP/IP, so that we can easily solve this problem.
Set the IP address to 10.0.0.x, subnet mask to 255.255.255.0, and gateway to 10.0.0.138. Set "preferred DNS server" to 10.0.0.1, and "backup DNS server" to 10.0.0.138, that is, the "first inside and then outside" access principle, all workstations can access both the Internet and the Intranet.