Win8.1系统Hosts文件突然失效的处理方案
时间:2023-05-13 05:37:58
Hosts文件能够大大加快Win8.1访问特定网页的速度。一些细心的用户发现Win8.1系统Hosts文件突然失效了,也不知道哪里出现问题?针对此问题,本教程就和大家分享一下Win8.1系统Hosts文件突然失效的处理方案。
推荐:系统部落win8.1系统下载
故障描述:
给大家做个演示测试,请看下图:
可见hosts文件路径是对的,而且只有一行映射,确保没有其他的干扰项。
使用ipconfig /flushdns清理DNS缓存,而且其实我还停止了DNS Client服务的。然后继续ping,依然返回的是真实DNS解析的地址。
故障原因:可见system的权限也是有分配的。下面那个我自己的账户和Admin组的账户的权限也是完全控制的。
解决方法:
1、编辑etc文件夹的访问权限,添加Network Service安全主体并赋予至少允许读取的权限,然后重新启动DNS Client服务即可。目前我的hosts已经一切正常。
2、按Win+ X键,点击“命令提示符(管理员)”,依次输入以下命令按回车键(Enter)执行:
SC stop Dnscache
SC config Dnscache obj= “NT AUTHORITYNetworkService”
TAKEOWN /F “%windir%System32driversetc” /A
icacls “%windir%System32driversetc” /grant “NT AUTHORITYNetworkService”:RX
SC start Dnscache
命令解释:
停止Dnscache(DNS Client)服务
将运行Dnscache服务的安全主体配置为Network Service
将etc文件夹所有权交给管理员组
为Network Service添加在etc文件夹中的读取和执行访问权限
启动Dnscache服务
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
如何使得word中插入的尾注显示1,2,3而不是i,ii
![](https://img.aspxhome.com/file/2023/6/18736_0s.jpg)
机械革命蛟龙17怎么去重装系统?机械革命蛟龙17重装系统的教程
![](https://img.aspxhome.com/file/2023/25/a217204_0s.png)
Win7系统电脑提高U盘安全性能避免数据丢失的方法
![](https://img.aspxhome.com/file/2023/4/a313054_0s.jpg)
Office2010中“文件”界面的详细介绍
![](https://img.aspxhome.com/file/2023/4/15724_0s.jpg)
Win 10管理员账户打不开程序怎么办?Win 10管理员账户打不开程序的解决办法
![](https://img.aspxhome.com/file/2023/28/a247746_0s.jpg)
win11wifi不跳转登录页面的解决方法
![](https://img.aspxhome.com/file/2023/30/a264773_0s.jpg)
cf烟雾头最新调法2022 三种最新方法教你cf怎么调烟雾头
![](https://img.aspxhome.com/file/2023/6/a323836_0s.jpg)
excel类似VLOOKUP能返回多个查询值的数组公式
excel表格怎样添加水印图片背景
Notepad++怎么设置背景颜色和字体颜色教学
![](https://img.aspxhome.com/file/2023/7/a327543_0s.png)
win10系统应用商店是英文怎么办
![](https://img.aspxhome.com/file/2023/4/a304153_0s.png)
Win10 更新离线安装包微软官网下载,持续更新……
![](https://img.aspxhome.com/file/2023/30/a263018_0s.jpg)
win11 edge怎么卸载?win11 edge浏览器彻底卸载的方法教程
![](https://img.aspxhome.com/file/2023/27/a235050_0s.jpg)
win10跨设备共享就近共享怎么使用和关闭?
![](https://img.aspxhome.com/file/2023/28/a241322_0s.jpg )
Win10系统怎么关闭Windows Defender实时防护?
![](https://img.aspxhome.com/file/2023/30/a268933_0s.jpg)
Win7缓存文件损坏且桌面图标只显示名称的解决方案
![](https://img.aspxhome.com/file/2023/27/a233086_0s.jpg)
wps怎么画雨伞图案? wps设计雨伞图标的技巧
![](https://img.aspxhome.com/file/2023/9/a165769_0s.jpg )
multiple editions是什么意思?Win10 multiple editions详细介绍
![](https://img.aspxhome.com/file/2023/26/a221754_0s.jpg)
8080端口被占用怎么解决?Win11 8080端口被占用解决方法
![](https://img.aspxhome.com/file/2023/27/a235128_0s.jpg)
如何制作Wim格式映像来安装系统
![](https://img.aspxhome.com/file/2023/30/a263070_0s.jpg)