Modify the Windows host file Tool

Source: Internet
Author: User

The hosts file is a computer file used to store information about each node in the computer network. This file maps the host name to the corresponding IP address. The hosts file is usually used to supplement or replace the DNS function in the network. Different from DNS, computer users can directly control hosts files.

Hosts file location

Hosts files vary in different operating systems (or even windows:

Operating System File Location
Windows NT/2000/XP/Vista/7 (Microsoft NT operating system) The default location is % SystemRoot % \ system32 \ drivers \ etc \, but it can also be changed. The dynamic directory is determined by the registry key \ HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Tcpip \ Parameters \ databasepath.
Linux and other UNIX-like operating systems /Etc
Mac OS 9 and earlier systems System Folder: preferences or system folder (the file format may be different from that of Windows and Linux)
Mac OS X /Private/etc (use the BSD hosts file)
IPhone OS /Etc

The hosts file can also be used in other cases. For example, you can redirect a known advertising server to a machine without advertisement (usually a local IP Address: 127.0.0.1) to filter the advertisement. You can also reduce bandwidth by not downloading network ads. Using the hosts file can also reduce access to the DNS server to speed up access and reduce bandwidth consumption.

Another important purpose of hosts files is to intercept requests from malicious websites to prevent access to fraudulent websites or virus or malware. However, this file may also be used by viruses or malware to prevent users from updating antivirus software or accessing specific websites.

In addition, you can modify the hosts file to forcibly specify the website to the correct IP address, so as to access those sites that cannot be accessed for some reason.

Dear GitHub, why can't we access you? GitHub cannot be accessed. You can modify the host file for resolution to avoid DNS hijacking. I believe we have to have a tool to modify the host file. The following host file modification tools are recommended for you:

1. Hosts file manager for IIS 7 is an IIS 7 plug-in. After installation, you can directly maintain the host file on the IIS panel, or remotely manage the host file through IIS, the following is my IP Address Maintenance on GitHub, you can find the IP address through the http://ping.eu/ping.

There is also an IIS 7/8 module http://iishostsmgr.codeplex.com/

2. Host profiles this is a cross-platform host management tool that supports windows and unbutn Linux. This tool provides a function to refresh DNS.

Similar software has a http://winhostsmanager.codeplex.com/

3. We often need to modify the host file for hosts switcher. In particular, the testing personnel need to configure the host for different environments, such as QA, production and local environments. This tool is very useful.

Through the combination of these three tools, we can control the host file like a fish in the water, and we can handle all kinds of situations. It is precisely for the work to do its best that we must first sharpen the tool. After that, I can go to GitHub again.

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.