How to use the Win7 system hosts file content

  

First, what is the hosts file?

Hosts is a system file with no extension, the basic function is to establish some common URL domain names and their corresponding IP addresses. An association "database",

When a user enters a URL that needs to be logged in in the browser, the system will first automatically find the corresponding IP address from the Hosts file. Once found, the system will immediately open the corresponding If the webpage is not found, the system will submit the URL to the DNS domain name resolution server for IP address resolution. If it is found to be blocked IP or domain name, it will be forbidden to open this webpage!

Second, Win7 hosts Default file

File address: C:WINDOWSsystem32driversetchosts

The default content is as follows:

------------------ -------------------------------------

# Copyright (c) 1993- 2009 Microsoft Corp.

#

# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.

#

# This file contains the mappings of IP addresses to host names. Each

# entry should be kept on an individual line. The IP address should

# be placed in the First column followed by the corresponding host name.

# The IP address and the host name should be separated by at least one

# space.

#
< #>, comments (such as these) may be inserted on individual

# lines or following the machine name by d & a ‘#’ symbol.

#
< #> example:

#

# 102.54.94.97 rhino.acme.com #源 server

# 38.25.63.10 x.acme.com # x client host

# localhost name resolution is handled within DNS itself.

# 127.0.0.1 localhost

# ::1 localhost

Copyright © Windows knowledge All Rights Reserved