当前位置:玉米系统 > 文章资讯 >

hosts文件位置在哪?hosts文件内容修改,教你清理hosts文件

时间:2018-05-02 来源:www.yumixitong.com 作者:玉米系统

Hosts是一个没有扩展名的系统文件,可以用记事本等工具打开,其作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”,当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,系统会立即打开对应网页,如果没有找到,则系统会再将网址提交DNS域名解析服务器进行IP地址的解析,hosts文件位置在哪?接下来玉米系统小编教你hosts文件修改方法。

hosts文件位置,hosts文件修改,hosts文件内容,清理hosts文件


hosts文件位置在哪?

hosts文件位置在“C:\WINDOWS\system32\drivers\etc\hosts”

hosts文件内容怎么修改?怎么清理hosts文件?

1、双击计算机图标。
2、找到hosts文件位置,C:\WINDOWS\system32\drivers\etc\hosts。

hosts文件位置


3、双击hosts文件,打开方式选择使用“记事本”打开。如下图所示;
 

hosts文件位置,hosts文件修改,hosts文件内容,清理hosts文件


4、打开后即可修改hosts文件内容,可以直接将整个文档清空,然后将下面提供的hosts文件内容复制进去,最后点“文件”--“保存”即可恢复原始hosts文件内容。

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文件内容,清理hosts文件

关于“hosts文件位置,清理hosts文件,hosts文件内容修改”介绍到这里吧。希望本文能给大家带来一些帮助!

小编推荐:玉米系统