关于github在linux上的加速DNS设置

host的一些修改手动添加:

vim /etc/hosts

或者

gedit /etc/hosts

复制下列DNS代码:

# GitHub520 Host Start 140.82.114.26 alive.github.com 140.82.114.26 live.github.com 185.199.108.154 github.githubassets.com 140.82.114.22 central.github.com 185.199.108.133 desktop.githubusercontent.com 185.199.108.153 assets-cdn.github.com 185.199.108.133 camo.githubusercontent.com 185.199.108.133 github.map.fastly.net 199.232.69.194 github.global.ssl.fastly.net 140.82.114.3 gist.github.com 185.199.111.153 github.io 140.82.113.4 github.com 192.0.66.2 github.blog 140.82.114.6 api.github.com 185.199.108.133 raw.githubusercontent.com 185.199.108.133 user-images.githubusercontent.com 185.199.108.133 favicons.githubusercontent.com 185.199.108.133 avatars5.githubusercontent.com 185.199.108.133 avatars4.githubusercontent.com 185.199.108.133 avatars3.githubusercontent.com 185.199.108.133 avatars2.githubusercontent.com 185.199.108.133 avatars1.githubusercontent.com 185.199.108.133 avatars0.githubusercontent.com 185.199.108.133 avatars.githubusercontent.com 140.82.113.9 codeload.github.com 52.217.139.73 github-cloud.s3.amazonaws.com 52.216.104.27 github-com.s3.amazonaws.com 52.217.108.108 github-production-release-asset-2e65be.s3.amazonaws.com 52.216.142.228 github-production-user-asset-6210df.s3.amazonaws.com 52.217.81.148 github-production-repository-file-5c1aeb.s3.amazonaws.com 185.199.108.153 githubstatus.com 64.71.144.202 github.community 23.100.27.125 github.dev 185.199.108.133 media.githubusercontent.com # Update time: 2021-11-27T12:05:26+08:00 # Update url: https://raw.hellogithub.com/hosts # Star me: https://github.com/521xueweihan/GitHub520 # GitHub520 Host End 

保存后回到终端:

sudo rcnscd restart
sudo systemctl restart NetworkManager

原文链接:https://blog.csdn.net/qq_47911262/article/details/121918174

原创文章,作者:优速盾-小U,如若转载,请注明出处:https://www.cdnb.net/bbs/archives/21691

(0)
上一篇 2023年11月23日
下一篇 2023年11月23日

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

优速盾注册领取大礼包www.cdnb.net
/sitemap.xml