欢迎来到山村网

Win7系统hosts文件内容如何使用

2019-03-07 09:06:15浏览:46 来源:山村网   
核心摘要:  一、什么是hosts文件?  hosts是一个没有扩展名的系统文件,其基本作用就是将一些常用的网址域名与其对应的IP地址建立一个

  一、什么是hosts文件?

  hosts是一个没有扩展名的系统文件,其基本作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”,

  当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,系统会立即打开对应网页,如果没有找到,则系统再会将网址提交DNS域名解析服务器进行IP地址的解析,如果发现是被屏蔽的IP或域名,就会禁止打开此网页!

Win7系统hosts文件内容如何使用 山村

  二、Win7的hosts 默认文件

  文件地址:C:WINDOWSsystem32driversetchosts

  默认里面的内容如下:

  -------------------------------------------------------

  # 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

(责任编辑:豆豆)
下一篇:

win7中你不知道的功能之上帝模式

上一篇:

win7系统如何使用注册表修改字体

  • 信息二维码

    手机看新闻

  • 分享到
打赏
免责声明
• 
本文仅代表作者个人观点,本站未对其内容进行核实,请读者仅做参考,如若文中涉及有违公德、触犯法律的内容,一经发现,立即删除,作者需自行承担相应责任。涉及到版权或其他问题,请及时联系我们 xfptx@outlook.com