What is the content of the Win7 system hosts file?

  
                

Hosts is a system file with no extension. It can be opened with a tool such as Notepad. Its function is to associate some commonly used URL domain names with their corresponding IP addresses. “Database”, when the user is in the browser. When you enter a URL that requires login, the system will automatically find the corresponding IP address from the hosts file. Where is the default file for the Win7 system's hosts? Let me talk about what the contents of the Win7 system hosts file are.

The steps are as follows:

First, what is the hosts file?

Hosts is a system file with no extension. Its basic function is to associate some commonly used URL domain names with their corresponding IP addresses. "Database",

When users are browsing When you enter a URL that needs to be logged in, the system will automatically find the corresponding IP address from the Hosts file. Once found, the system will immediately open the corresponding web page. If it is not found, the system will submit the URL to the DNS domain name resolution server for IP. Address resolution, if found to be blocked IP or domain name, it will be prohibited to open this page!

Second, Win7 hosts default file

File address: C:\\WINDOWS\\system32\\drivers\\etc\\hosts

The default contents are 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.

#

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

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

#

# For 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

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

The above is the Win7 system hosts file. What is the content of the content. The hosts file is a file on the computer that is used to correlate the URLs and IPs that you are accessing. If you don't know, you can refer to the above content, and hope to help more people in need here.

Copyright © Windows knowledge All Rights Reserved