HOSTS是什么|HOSTS文件位置|HOSTS文件內(nèi)容
HOSTS是什么|HOSTS文件位置|HOSTS文件內(nèi)容
HOSTS是一個(gè)ASCII碼格式的域名解文件,存儲(chǔ)在:C:\WINDOWS\system32\drivers\etc文件夾下。它里面可以存儲(chǔ)域名到IP地址的映射記錄。在以前沒(méi)有DNS服務(wù)器進(jìn)行域名解析的時(shí)候就用HOSTS文件來(lái)存儲(chǔ)解析記錄,現(xiàn)在也用它存儲(chǔ)一些常用的DNS解析記錄。當(dāng)然它也有可能被一些惡意網(wǎng)站篡改,當(dāng)然打開(kāi)某些網(wǎng)址的時(shí)候確打開(kāi)了另一個(gè)網(wǎng)站,就是這種情況。
HOSTS文件可以用記事本打開(kāi),大體內(nèi)容如下:
# 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
如果您的HOSTS自己沒(méi)有配置過(guò),而與這里的內(nèi)容不同,有可能被別的程序或病毒、木馬修改過(guò),建議將不同的地方刪除,以免您正常使用電腦。
關(guān)鍵詞:HOSTS