Hosts file and abnormal repair

What Hosts File?

  : Hosts file main role is to define the IP address and host name mapping relationship is a mapping of IP addresses and host names specified. You can open a text file! When a user enters a URL to log in the browser, the system will first automatically find the corresponding IP address from the Hosts file, once found, the browser opens the corresponding page immediately, if not found, browser will submit URLs DNS server IP address resolution. This is also the method of improving quickly open a web page!

 Where Hosts file location?

  1, Windows XP / 2003 / Vista / 2008/7/8 / 8.1 / 10 user Hosts file is in: C: \ Windows \ System32 \ drivers \ etc

       2, R may be the input Win +: C: \ Windows \ System32 \ drivers \ etc

Hosts file repair:

       1, the hosts file copied to the desktop, with Notepad;

       2, delete the entire contents of Notepad, copy the following contents into a file and save it:

  # copyright (c) 1993-1999 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 denoted by a '#' symbol.

  #

  # for example:

  #

  # 102.54.94.97 rhino.acme.com # source server

  # 38.25.63.10 x.acme.com # x client host

  127.0.0.1 localhost

  127.0.0.1 localhost

3, the modified hosts file into C: \ Windows \ System32 \ drivers \ etc replace the previous hosts file repair is successful!

 

Guess you like

Origin www.cnblogs.com/showovo/p/11313840.html