Win7 Tips: Binding Hosts File Strategy

  

For Hosts files, many Win7 system users are unfamiliar. In fact, Hosts is a system file with no extension. It can be opened with tools such as Notepad. Its role is to A commonly used URL domain name establishes an association with its corresponding IP address "database", so it is also relatively powerful. Today we will talk about the Hosts file to explain in detail how to make better use of it on Win7.

Windows first open the host file, its steps: Open the C:\\Windows\\System32\\Drivers\\etc\\hosts file (usually text mode), then add the words you want to tie behind the following lines The ip and domain name.

# localhost name resolution is handled within DNS itself.

# 127.0.0.1 localhost

# ::1 localhost

First find the C drive directory \\Windows\\System32\\drivers folder.

Then open the etc folder, you can see the hosts file, choose to open the hosts file in Notepad mode

, you can bind the ip address according to your needs, the modification is complete After that, remember to save 哟!!! (# indicates the IP address in the modified host, commented, will not take effect, if you remove #, the domain name will directly enter the corresponding IP, hackers often modify the hosts file, Let users enter their phishing website.)

When a user enters a URL that needs to be logged in in the browser, the system will automatically find the corresponding IP address from the Hosts file first. Once found, the system will immediately Open the corresponding webpage. If it is not found, the system will submit the URL to the DNS domain name resolution server for IP address resolution. This is the powerful function of the Hosts file. After reading this tutorial, I believe that you have a better understanding of the Hosts file. Users who need to bind can try it according to the above steps.

Copyright © Windows knowledge All Rights Reserved