解决国内访问github慢的问题

1.使用浏览器访问https://www.ipaddress.com/,分别获取github.com,github.global.ssl.fastly.net对应的ipgit

clipboard.png

本人获取的ip以下:github

192.30.253.112 github.com
151.101.13.194 github.global.ssl.fastly.net

2.修改host文件(本人使用switchHost工具切换host)浏览器

$ pwd
/c/Windows/System32/drivers/etc

修改HOSTS文件以下:
# Additionally,
# lines or following the machi
192.30.253.112 github.com
151.101.13.194 github.global.ssl.fastly.net

3.更新DNS缓存缓存

C:\Users\xxx>ipconfig /flushdns

Windows IP 配置

已成功刷新 DNS 解析缓存。

4.从新访问https://github.com,是否是很快!!!工具

clipboard.png

相关文章
相关标签/搜索