赞
踩
修改系统hosts文件,绕过国内dns解析,直接访问GitHub的CDN节点
打开系统hosts文件(需管理员权限)。
路径 :C:\Windows\System32\drivers\etc
添加一下内容
13.127.152.42 codeload.github.com
151.101.88.133 github.map.fastly.net
151.101.88.133 favicons.githubusercontent.com
151.101.88.133 raw.github.com
151.101.88.133 raw.githubusercontent.com
151.101.88.133 camo.githubusercontent.com
151.101.88.133 cloud.githubusercontent.com
151.101.88.133 avatars.githubusercontent.com
151.101.88.133 avatars0.githubusercontent.com
151.101.88.133 avatars1.githubusercontent.com
151.101.88.133 avatars2.githubusercontent.com
151.101.88.133 avatars3.githubusercontent.com
151.101.88.133 user-images.githubusercontent.com
185.199.111.154 github.githubassets.com
52.69.239.207 api.github.com
52.74.223.119 gist.github.com
打开命令提示符,输入:ipconfig /flushdns
返回显示:
Windows IP 配置
已成功刷新 DNS 解析缓存。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。