Windows modifies local hosts table use domain name to access local site

Source: Internet
Author: User

1. Set Web site IIS site properties IP address is "127.0.0.1" or "(All Unassigned)"

2. Notepad opens the C:/windows/system32/drivers/etc/hosts file, adds "127.0.0.1 www.111cn.net" the domain name and the IP to map in the following format

3. Open the browser and use Www.111cn.net to access the local site


Principle: C:/windows/system32/drivers/etc/hosts is a local domain name resolution file, in the browser input a URL, window first check this file has no domain name on the IP, there is a request for this IP, no words will be to DNS (Domain Name System , you can see the DNS server IP address in the local connection TCP/IP properties to continue to seek resolution until you receive the correct IP and then broadcast the HTTP request.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.