小编Ale*_*ust的帖子

Windows 8. 主机文件不起作用

我正在使用 Windows 8 开发人员预览版 (x64) 进行测试。我想通过 DNS 访问一些本地网络资源。所以,我在我的主机文件 ( %sindir%/system32/drivers/etc/hosts) 中添加了下一行:

169.254.1.20       host.local
Run Code Online (Sandbox Code Playgroud)

但是当我尝试 ping host.local 时,我收到以下错误

Ping request could not find host unsecure.local. Please check the name and try a
gain.
Run Code Online (Sandbox Code Playgroud)

尝试从 IE 中打开它也会显示连接错误(不需要本地代理并已关闭)。

但输出

C:\Users\moonorg>ipconfig /displaydns
Run Code Online (Sandbox Code Playgroud)

显示我的主机:

Windows IP Configuration

61.2.254.169.in-addr.arpa
----------------------------------------
Name does not exist.


20.1.254.169.in-addr.arpa
----------------------------------------
Record Name . . . . . : 20.1.254.169.in-addr.arpa.
Record Type . . . . . : 12
Time To Live  . . . . : 86400
Data Length …
Run Code Online (Sandbox Code Playgroud)

dns hosts-file windows-8-preview

5
推荐指数
1
解决办法
3765
查看次数

标签 统计

dns ×1

hosts-file ×1

windows-8-preview ×1