https://segmentfault.com/a/1190000015879053

使用浏览器访问https://www.ipaddress.com/

分别获取 github.com,github.global.ssl.fastly.net 对应的ip
找到 DNS Resource Records 一栏的type A记录,复制对应的ip地址
image.png
我获取的ip如下:

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

修改host文件

进入 /c/Windows/System32/drivers/etc 文件夹,找到host文件,用记事本或者notepad++打开
image.png
在末尾加上这两句即可

更新DNS缓存

win+R 输入cmd ,打开命令行,然后输入 ipconfig /flushdns
即可刷新DNS解析

重新访问https://github.com

速度飞起