Wins system host file repair solution

  
                

I believe everyone is familiar with hosts, and you know how to use them. The hosts file can be opened with Notepad. Its role is to associate some of your commonly used URL domain names with their corresponding IP addresses. “Database”. A netizen responded that he used the Win7 system. He wanted to modify the hosts file under the Win7 system and found that he could not modify it. The prompt did not have permission. Then use Notepad to open it, and you can't save it when you save it. How to solve this problem? Now let me talk about the solution to the repair of the hosts file under Win7 system.

The method is as follows:

What file is the Hosts file? what's the effect?

In a computer system, the hosts file can define the mapping between IP addresses and host names. It specifies the mapped IP address and host name when the computer accesses the network and performs network settings. However, the hosts file can be opened in a text file format and view its specific content. For example, when a user enters a website in the browser, but the website needs to log in, the system will automatically find the hosts file to work. The hosts file will look for the corresponding IP address at this time, as long as the corresponding IP is found. Address, then the browser will open the corresponding page feedback to the user.

The location of the Hosts file

The above also said that the hosts can find the corresponding IP address, but if the corresponding IP address is not found, the browser will submit the URL to the DNS. The server and the DNS server will perform IP address resolution for the current status in the current state, and the work that cannot be completed by the host before the completion. So where is the hosts file in the Windows system? Since it is an important system file, the location of the hosts file must be in the Windows folder of the system disk. Take Windows7 as an example. If we enter the system disk, then enter the Windows folder, and then access the folder in the order of system32-drivers-etc, then we can see the hosts file.

How to fix the hosts file?

When a computer is attacked by a virus and the hosts file is damaged so that the computer's network access fails, we can take remedial measures to solve the problem. Of course, the first thing to do is to do anti-virus processing on the computer, otherwise it will not be able to complete the recovery after the repair. First, we enter the location of the hosts file, then right click on the hosts file, select the open method in the pop-up window, select to open the hosts file using Notepad, open all the contents of the notebook, and re-enter the new statement. Start with #Copyright(c)1993-2009MicrosoftCorp.## and end with the localhost#::1localhost statement. After the input is completed, save the file and replace the original hosts file, so that we have completed the repair and processing of the hosts file.

After the above repair method, the related network exception caused by the hosts file can generally be solved, but we need to pay attention to the fact that the hosts file must not have any error during the repair process, even if It is impossible to have one less symbol.

The above is the whole content of the hosts file repair solution under Win7 system. If you have any users who want to modify the hosts file, you can follow the above method, but this method is only suitable for users of Win7 system. I hope that I can help users who use Win7 system here.

Copyright © Windows knowledge All Rights Reserved