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?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522169114663716800184125610%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=169114663716800184125610&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-11-121918174-null-null.268%5Ev1%5Ekoosearch&utm_term=dns%E5%8A%A0%E9%80%9F
原创文章,作者:优速盾-小U,如若转载,请注明出处:https://www.cdnb.net/bbs/archives/21854