乱写的博客

生命不息,折腾不止

大佬的成品host:github域名/521xueweihan/GitHub520

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

140.82.114.3 github.com
140.82.113.4 gist.github.com
185.199.108.153 assets-cdn.github.com
185.199.108.133 raw.githubusercontent.com
185.199.108.153 gist.githubusercontent.com
185.199.108.153 cloud.githubusercontent.com
185.199.108.153 camo.githubusercontent.com
185.199.108.153 avatars0.githubusercontent.com
185.199.108.153 avatars1.githubusercontent.com
185.199.108.153 avatars2.githubusercontent.com
185.199.108.153 avatars3.githubusercontent.com
185.199.108.153 avatars4.githubusercontent.com
185.199.108.153 avatars5.githubusercontent.com
185.199.108.153 avatars6.githubusercontent.com
185.199.108.153 avatars7.githubusercontent.com
185.199.108.153 avatars8.githubusercontent.com
54.157.58.70 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/

发表评论

文章归档

其它功能