修改Hosts

最新的方法https://github.com/getlantern/lantern

 

C:\Windows\System32\drivers\etc

在这个路径下找到Hosts文件

 

如何修改Host

 

Host文件的具体内容

 

How to refresh hosts file without rebooting

You don't need to reboot. Any changes you make to the hosts file are immediate. You used to need to reboot for changes to take effect in Windows 9x. That is no longer the case.

However, you may need to restart any applications that do internal hostname or DNS caching, such as web browsers.

 

 
 

Have you tried ipconfig /flushdns ? I haven't found the need to reboot, though.

 

 

Just a warning, NSLOOKUP will still retrieve results from DNS Server will never look at hosts file; To check if your new name works try the ping command.

使用tracert -d命令追踪域名的解析,发现是可以解析的。

 

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(304)  评论(0)    收藏  举报
编辑推荐:
· 记录一次线上问题排查:JDK序列化问题
· 微服务之间有哪些调用方式?
· 记一次SQL隐式转换导致精度丢失问题的排查
· dotnet 9 通过 AppHostRelativeDotNet 指定自定义的运行时路径
· 如何统计不同电话号码的个数?—位图法
阅读排行:
· EF Core 10 现已支持 LeftJoin 和 RightJoin 运算符查询了!
· 一个基于 C# Unity 开发的金庸群侠传 3D 版,直呼牛逼!
· 记录一次线上问题排查:JDK序列化问题
· SQL Server 2025 中的改进
· 国内首个「混合推理模型」Qwen3深夜开源,盘点它的N种对接方式!
点击右上角即可分享
微信分享提示