乱写的博客

生命不息,折腾不止

部分地区异常 领卷瓢的良心云鸡都跑不动脚本 改host就能解决 这边贴一下
windows路径C: / Windows / System32 / drivers/ etc / hosts
Linux路径/etc/hosts

140.82.113.4 github.com
192.30.253.119 gist.github.com
151.101.100.133 assets-cdn.github.com
199.232.68.133 raw.githubusercontent.com
151.101.100.133 gist.githubusercontent.com
151.101.100.133 cloud.githubusercontent.com
151.101.100.133 camo.githubusercontent.com
151.101.100.133 avatars0.githubusercontent.com
151.101.100.133 avatars1.githubusercontent.com
151.101.100.133 avatars2.githubusercontent.com
151.101.100.133 avatars3.githubusercontent.com
151.101.100.133 avatars4.githubusercontent.com
151.101.100.133 avatars5.githubusercontent.com
151.101.100.133 avatars6.githubusercontent.com
151.101.100.133 avatars7.githubusercontent.com
151.101.100.133 avatars8.githubusercontent.com
34.204.135.175 git.io

reboot即可
我是图
那么问题就来了 上面的失效咋办
那就另请高明把 我也不是谦虚
获取GitHub官方CDN地址
打开https://www.ipaddress.com/

查询以下三个链接的DNS解析地址

  1. github.com
  2. assets-cdn.github.com
  3. github.global.ssl.fastly.net
  4. codeload.github.com (下载链接的实际地址) raw.githubusercontent.com

192.30.253.112 github.com
185.199.108.153 assets-cdn.github.com
151.101.185.194 github.global.ssl.fastly.net
140.82.113.10 codeload.github.com

打开DNS
vi /etc/resolv.conf
更新DNS缓存,输入sudo /etc/init.d/networking restart
Ubuntu:sudo systemctl restart nscd


版权声明:本文为原创文章,版权归 乱写的博客 所有,转载请注明本站
本文地址:https://blog.laomoe.com/index.php/archives/5/

发表评论

文章归档

其它功能