学
前言
每次访问GitHub都特别慢,原因大家也都了解,DNS被污染了,但是IP并没有被封杀,还是能够正常访问的。
所以很多人都是通过修改hosts文件改善访问速度。但是每次都要去网上去找合适的hosts。
本文记录了一些大佬整理好的hosts文件。希望各位用到的时候可以快速应用。
解决
有大佬写了程序定时每日更新,我这里摘录部分内容,大家可以去大佬博客观看,这里感谢大佬的贡献。
大佬直达:http://blog.yoqi.me/lyq/16489.html
下文我会偶尔更新。大家要看还是推荐直接去大佬博客~
#*********************github 2022-01-26 update********************
#******* get latest hosts: http://blog.yoqi.me/lyq/16489.html
151.101.1.194 github.global.ssl.fastly.net
185.199.108.153 assets-cdn.github.com
185.199.109.153 documentcloud.github.com
140.82.112.3 gist.github.com
185.199.108.133 gist.githubusercontent.com
185.199.108.154 github.githubassets.com
2606:50c0:8002::154 help.github.com
140.82.114.10 nodeload.github.com
185.199.108.133 raw.github.com
140.82.113.17 status.github.com
2606:50c0:8003::153 training.github.com
185.199.109.133 avatars.githubusercontent.com
185.199.109.133 avatars0.githubusercontent.com
185.199.110.133 avatars1.githubusercontent.com
185.199.110.133 avatars2.githubusercontent.com
185.199.110.133 avatars3.githubusercontent.com
185.199.110.133 avatars4.githubusercontent.com
185.199.109.133 avatars5.githubusercontent.com
185.199.108.133 avatars6.githubusercontent.com
185.199.111.133 avatars7.githubusercontent.com
185.199.109.133 avatars8.githubusercontent.com
185.199.110.133 favicons.githubusercontent.com
140.82.112.9 codeload.github.com
52.217.173.137 github-cloud.s3.amazonaws.com
52.217.203.9 github-com.s3.amazonaws.com
52.216.26.212 github-production-release-asset-2e65be.s3.amazonaws.com
52.217.163.113 github-production-user-asset-6210df.s3.amazonaws.com
52.216.205.27 github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.108.153 githubstatus.com
64.71.144.202 github.community
185.199.111.133 media.githubusercontent.com
185.199.108.133 camo.githubusercontent.com
2606:50c0:8003::154 raw.githubusercontent.com
185.199.111.133 cloud.githubusercontent.com
185.199.108.133 user-images.githubusercontent.com
185.199.111.153 customer-stories-feed.github.com
2606:50c0:8002::153 pages.github.com
140.82.113.5 api.github.com
140.82.112.25 live.github.com
140.82.114.30 githubapp.com
23.100.27.125 github.dev
140.82.114.4 github.com
hosts
-
windows
C:\Windows\System32\drivers\etc\hosts -
mac
/etc/hosts
添加完后如果不生效可以尝试重启电脑
其它
有时候光hosts也不一定管用,可以多参考文尾大佬的文章,总有一个有用的。
或者通过站长之家查看ping检测,自行调整所有ip
http://ping.chinaz.com/github.com
参考文献
http://blog.yoqi.me/lyq/16489.html
https://zhuanlan.zhihu.com/p/107334179
Ping检测 http://ping.chinaz.com/github.com
网友评论