最近更新|软件分类|单机游戏|软件专题|手机版|软件发布 host是什么 host文件怎么修复
首页>网络安全>host是什么 host文件怎么修复

host是什么 host文件怎么修复

我要评论2017/06/13 17:03:25来源:9553下载编辑:

host文件的主要作用是可以加快某个域名或网站的解析速度,来达到快速访问某个网站的目的,那么怎么修复host文件呢?请往下看!

host是什么 host文件怎么修复

host是什么

Hosts文件主要作用是定义IP地址和主机名的映射关系,是一个映射IP地址和主机名的规定。可以用文本文件打开!当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,浏览器会立即打开对应网页,如果没有找到,则浏览器会将网址提交DNS服务器进行IP地址解析。这也是提高快速打开网页的方法!

host是什么 host文件怎么修复

Hosts文件位置在哪里?

Windows XP/2003/Vista/2008/7/8/8.1/10用户Hosts文件是在:C:WindowsSystem32driversetc

host是什么 host文件怎么修复

你可以直接根据上述路径进入,也可Win+R后输入:C:WindowsSystem32driversetc

host是什么 host文件怎么修复

Hosts文件修复方法

1、将hosts文件复制到桌面,用记事本打开!

host是什么 host文件怎么修复

2、删除记事本的全部内容,将以下内容复制后放入文件然后保存:

01# copyright (c) 1993-1999 microsoft corp.

02#

03# this is a sample hosts file used by microsoft tcp/ip for windows.

04# this file contains the mappings of ip addresses to host names. each

05# entry should be kept on an individual line. the ip address should

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

07# the ip address and the host name should be separated by at least one

08# space.

09#

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

11# lines or following the machine name denoted by a '#' symbol.

12#

13# for example:

14#

15# 102.54.94.97 rhino.acme.com # source server

16# 38.25.63.10 x.acme.com # x client host

17127.0.0.1 localhost

18127.0.0.1 localhost

host是什么 host文件怎么修复

3、将修改后的hosts文件放入C:WindowsSystem32driversetc替换以前的hosts文件,修复成功!

host是什么 host文件怎么修复

关键词: host