Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the Hosts file of the windows operating system?

2025-01-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

What is the Hosts file of windows operating system? in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

What is a Hosts file?

Hosts file is a computer file used to store the information of each node in the computer network. This file is responsible for mapping the host name to the corresponding IP address. Hosts files are often used to supplement or replace the functions of DNS in the network. Unlike DNS, computer users can directly control hosts files.

1. The history of Hosts files

ARPANET (the predecessor of Internet) does not use DNS to resolve the addresses of nodes in the network. Since there was no centralized system for this purpose at that time, each network node used its own network node map and assigned a corresponding name to facilitate the user's memory. There was no system to guarantee that all systems on the network were represented by the same name, and there was no way to read other users' hosts files and copy them automatically.

The small size of ARPANET allows the use of hosts files to name pre-agreed names in specific situations. A typical network node has an address and may have multiple names. However, when the personal network is getting larger and larger, it becomes more and more difficult to manage hosts files.

2. Location of the Hosts file

The location of the hosts file varies from operating system to operating system (even to different Windows versions):

In Windows, the default hosts file is usually blank or contains comment statements and uses a default rule:

127.0.0.1 localhost

:: 1 localhost

3. The purpose of Hosts files

The hosts file can also be used in other situations, such as redirecting a known advertising server to an ad-free machine (usually the local IP address: 127.0.0.1) to filter ads. At the same time, bandwidth can be reduced by not downloading online ads. Using hosts files can also reduce access to DNS servers to speed up access and reduce bandwidth consumption.

Another important use of hosts files is to block requests from malicious websites so as to prevent visits to fraudulent websites or infection with viruses or malware. But at the same time, this file may also be used by viruses or malware to prevent users from updating antivirus software or visiting specific websites.

You can also modify the hosts file to force the site to be assigned to the correct IP to access sites that are not accessible for some reason. In addition, hosts files are often used to crack and activate some software. the principle is that the shielding software automatically connects to the official server to verify whether the activation information is correct.

II. The method of modifying Windows 7 Hosts files

Method 1. Improve the user's operation authority on the Hosts file

1. Under normal circumstances, if you directly modify and save the hosts file, even if you operate as an administrator, the user will be prompted to have no permission to operate, as shown in the following figure:

2, at this time, we can enhance the user's rights to operate on the Hosts file to solve the problem, the specific methods are as follows: right-click the Hosts file, select the properties, and then click the "Security" tab, select the current user again in the pop-up permissions setting interface, and then check "full Control" or "modify". Finally, click on the application to take effect.

3. After the settings are completed, you can change the Hosts file.

Method 2. Copy and replace Hosts files

In addition to upgrading the authority to solve, there is a simpler method as follows: first copy a Hosts file to another location, and then make the changes you want in the copied Hosts file, after the operation is completed, move the copy of the Hosts file to the original Hosts file directory, then you will be prompted whether to overwrite, click OK to overwrite!

Method 3. Operate in a lower operating environment.

As with other operating rights problems, entering a lower operating environment can also solve this problem, such as entering Windows 7 safe mode or PE system, etc., the way to enter Windows 7 safe mode is as follows: quickly press the F8 key on the keyboard when starting the computer, and then select to enter "safe mode" in the Windows 7 advanced startup options that appear (select with the arrow keys on the keyboard, use the Enter enter key to determine) After entering, you can modify and save the Hosts file!

The answer to the question about the Hosts file of the windows operating system is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report