网站访问慢dns host修改

发布于 2023-11-25  122 次阅读


通过网站https://ping.chinaz.com/https://dnschecker.org/

测速找到最快的ip

hosts地址以管理员身份运行

- Windows系统:C:\Windows\System32\Drivers\etc\hosts

- Mac系统:/private/etc/hosts

- Linux系统:/etc/hosts

实例

20.205.243.166 github.com
23.44.52.78 store.steampowered.com

更新dns 缓存 ipconfig/flushdns

cmd打开用ping+网址测试

显示hosts你写的ip即为测试成功

一般用于改善不同地区网站打开速度问题