首页 > 常见问题 > 正文

hosts文件内容是什么

2016-08-08 14:59:46   标签: hosts  

  hosts文件内容是什么?hosts是一个没有扩展名的系统文件,其基本作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”。有些用户不小心删除了hosts文件,就需要重新建了一个hosts文件。今天小编为大家分享一下hosts文件默认的内容。

  Win7的hosts 默认文件

  文件地址:C:\WINDOWS\system32\drivers\etc\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文件的内容。



关于我们

Copyright  ©  2012-2018 Tongyongpe.com All Rights Reserved. 通用PE工具箱 版权所有