我想将 96.7.41.139 设置为 download.microsoft.com 的 IP 地址,我查看了这篇文章: https://serverfault.com/questions/452268/hosts-file-ignored-how-to-troubleshoot 并按如下所示设置主机。
96.7.41.139 main.dl.ms.akadns.net
96.7.41.139 a767.dscms.akamai.net
96.7.41.139 download.microsoft.com.nsatc.net
96.7.41.139 download.microsoft.com.edgesuite.net
96.7.41.139 download.microsoft.com
但没有成功。结果如下。我该怎么办?
C:\Users\admin>nslookup download.microsoft.com
Server: UnKnown
Address: 172.16.17.4
Non-authoritative answer:
Name: a767.dscms.akamai.net
Addresses: 2a00:1e48:1:4::bc2b:484a
2a00:1e48:1:4::bc2b:4852
2a00:1e48:1:4::bc2b:4870
188.43.72.74
188.43.72.112
188.43.72.82
Aliases: download.microsoft.com
download.microsoft.com.nsatc.net
main.dl.ms.akadns.net
download.microsoft.com.edgesuite.net
C:\Users\admin>ping download.microsoft.com
Pinging a767.dscms.akamai.net [188.43.72.74] with 32 bytes of data:
Request timed out.
Request timed out.
Reply from 188.43.72.74: bytes=32 time=211ms TTL=43
-----
C:\Users\admin>ping download.microsoft.com.nsatc.net
Pinging download.microsoft.com.nsatc.net [96.7.41.139] with 32 bytes of data:
Reply from 96.7.41.139: bytes=32 time=358ms TTL=37
Reply from 96.7.41.139: bytes=32 time=346ms TTL=37
-------
C:\Users\admin>ping main.dl.ms.akadns.net
Pinging main.dl.ms.akadns.net [96.7.41.139] with 32 bytes of data:
Reply from 96.7.41.139: bytes=32 time=334ms TTL=37
Reply from 96.7.41.139: bytes=32 time=357ms TTL=37
-----
C:\Users\admin>ping download.microsoft.com.edgesuite.net
Pinging download.microsoft.com.edgesuite.net [96.7.41.139] with 32 bytes of data:
Reply from 96.7.41.139: bytes=32 time=278ms TTL=37
Reply from 96.7.41.139: bytes=32 time=291ms TTL=37
答案1
由于缺乏回复,我无法发表评论。不过,补充一下用户 Xyon 的回答,您可以尝试 IPCONFIG /FLUSHDNS 来清除缓存中已有的 IP 地址映射,而不是重新启动。您可能需要执行几次才能清除缓存。
希望这可以帮助。