Where is the Hosts file location? Where is the Hosts file modified

Source: Internet
Author: User

What is the Hosts file?

Hosts is a system file without extensions, you can use Notepad and other tools to open, its role is to use a number of commonly used Web site domain name and its corresponding IP address to establish an association "database", when the user in the browser to enter a need to log in to the URL, The system will first automatically find the corresponding IP address from the Hosts file, once found, the system will immediately open the corresponding Web page, if not found, then the system will be submitted to DNS domain name resolution server IP address resolution

Where is the Windows xp/2003/vista/2008/win7 user Hosts file location?

Under the "C:\WINDOWS\SYSTEM32\DRIVERS\ETC" directory


How does the Hosts file open

Hosts file is a file with no suffix name we can use the Windows Notepad file to open it, as shown in the following figure

Effect after the host file is opened

Hosts file How to specify IP access to the specified Web site

Below we take www.111cn.net as an example, when the user wants to access www.111cn.net is automatically pointing to IP 1.1.1.1 we have the following operation in the Hosts file

1.1.1.1 Www.111cn.net (Note that there are spaces before IP and domain names)

Then we can save the host file

Note: we must remember to close the browser and then reopen the browser before it can take effect oh, otherwise it may visit the original IP address of the site .

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.