Win7系统hosts文件内容是什么?
时间:2023-05-24 13:52:42
hosts是一个没有扩展名的系统文件,可以用记事本等工具打开,其作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”,当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从hosts文件中寻找对应的IP地址。那Win7系统的hosts默认文件在哪里?下面就和大家说一下Win7系统hosts文件内容是什么。
步骤如下:
一、什么是hosts文件?
hosts是一个没有扩展名的系统文件,其基本作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”,
当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,系统会立即打开对应网页,如果没有找到,则系统再会将网址提交DNS域名解析服务器进行IP地址的解析,如果发现是被屏蔽的IP或域名,就会禁止打开此网页!
![Win7系统hosts文件内容是什么?](https://img.aspxhome.com/file/2023/27/a231862_0.jpg)
二、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
-------------------------------------------------------
上述也就是Win7系统hosts文件内容是什么的内容了。hosts文件是电脑上一个用来关联你所访问的网址和IP对应解析的一个文件,不了解的可以参考一下上述的内容,希望在这里能够帮助到更多有需要人。
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
PPT怎么制作?新手如何制作PPT
![](https://img.aspxhome.com/file/2023/10/a345333_0s.png)
wps表格怎样修改默认用户名
WPS窗体工具解决表格规范化填写的难题
![](https://img.aspxhome.com/file/2023/8/a169828_0s.jpg)
win11游戏掉帧严重的三种解决方法
![](https://img.aspxhome.com/file/2023/30/a268600_0s.jpg)
excel排序公式有哪些
![](https://img.aspxhome.com/file/2023/9/a161689_0s.gif)
Win10自带的杀毒软件如何开启或关闭?Win10自带的杀毒软件开启或关闭的方法
![](https://img.aspxhome.com/file/2023/8/52668_0s.jpg)
Win11怎么重置任务栏角落溢出图标?
![](https://img.aspxhome.com/file/2023/27/a236774_0s.jpg)
如何防止在excel透视表自动调整列宽
![](https://img.aspxhome.com/file/2023/7/a155497_0s.jpg)
Excel怎么使用MINVERSE函数计算矩阵的逆矩阵?Excel计算逆矩阵教程
![](https://img.aspxhome.com/file/2023/6/39826_0s.jpg)
wps表格怎么设置往下编号
打印机驱动怎么装 网络打印机驱动的安装方法
![](https://img.aspxhome.com/file/2023/2/a290083_0s.jpg)
如何一键安装Win7系统?系统之家Win7装机教程
![](https://img.aspxhome.com/file/2023/26/a227921_0s.png)
Windows下System Volume Information文件夹是干嘛用的?
秘书文员必备技能:Word文档打印不求人
![](https://img.aspxhome.com/file/2023/0/29870_0s.jpg)
Excel中如何填充不连续的单元格
![](https://img.aspxhome.com/file/2023/4/38294_0s.jpg)
Win11系统TCP协议怎么修改ip地址? Win11 Internet协议的设置方法
![](https://img.aspxhome.com/file/2023/28/a240736_0s.jpg)
福昕PDF编辑器怎么加密PDF文档?
![](https://img.aspxhome.com/file/2023/7/a329028_0s.png)
2招解决Word排版遇到的问题
![](https://img.aspxhome.com/file/2023/4/24114_0s.jpg)
GG租号怎么发布账号?GG租号发布账号的方法
![](https://img.aspxhome.com/file/2023/8/a333661_0s.jpg)
笔记本电脑显示器暗怎么回事_笔记本电脑显示器暗的解决方法
![](https://img.aspxhome.com/file/2023/3/a299890_0s.jpg)