github访问加速-修改hosts文件

修改系统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

刷新本地DNS缓存

打开命令提示符,输入:ipconfig /flushdns

返回显示:
Windows IP 配置
已成功刷新 DNS 解析缓存。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值