<2>如果有被修改過的話要如何重回預設的HOST檔案(我是WIN8系統的)
- Dec 03 Tue 2013 20:25
-
HOST檔案
<2>如果有被修改過的話要如何重回預設的HOST檔案(我是WIN8系統的)
最佳解答
- 發問者自選
1.請問如何知道HOST檔案是否有被修改過??
答:host檔案位於這個位置:C:\Windows\system32\drivers\etc
其中檔名為hosts的檔案就是了
你只要點選該檔案,再按右鍵,並於選單中選擇[內容]。
最後在檔案內容視窗中即可查看該檔案的最近修改及存取日期。
修改日期:指該檔案曾被使用者開啟並修改內容及存檔時的日期
存取日期:該檔案被使用者開啟但沒有修改的日期
2.預設的hosts檔案內容如下(小弟為Win7系統下的檔案;但檔案內容結構大致上沒什麼差)
------hosts檔案開頭------
# 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 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
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
------hosts檔案結尾------
基本上只要把上面的內容貼到記事本中,然後另存成hosts檔案。
最後再將這個hosts檔案放到小弟在上面所述的位址中即可。
(如你使用系統管理員權限開啟記事本,可以直接將檔案另存到上述位址中,不必另外複製過去。)