关于dns:DNS-github访问不了解决方法汇总

38次阅读

共计 2385 个字符,预计需要花费 6 分钟才能阅读完成。

问题形容

GitHub 网页最近忽然拜访不了, 关上速度很慢, 如何解决?

问题剖析

对于 GitHub 网页关上速度很慢的问题, 有如下起因, 罕用, 可能

  • 网络原本速度慢(不太可能)
  • DNS 解析配置导致
  • hosts 域名 ip 解析配置导致
  • 网络带宽过大(不常见)

个别常见的起因是 DNShosts的问题

网络问题这个很容易判断是不是

问题解决

参看 Windows | Hosts | windows hosts 简介

批改hosts, 增加如下 GitHub 域名 ip 映射表

# github start
# Github Hosts
# Update 20210312
140.82.112.3 github.com
140.82.112.10 nodeload.github.com
140.82.114.6 api.github.com
13.229.189.0 codeload.github.com
185.199.110.133 raw.github.com
185.199.110.153 training.github.com
185.199.110.153 assets-cdn.github.com
185.199.110.153 documentcloud.github.com
185.199.110.154 help.github.com
185.199.110.153 githubstatus.com
199.232.69.194 github.global.ssl.fastly.net
185.199.110.133 raw.githubusercontent.com
185.199.110.133 cloud.githubusercontent.com
185.199.110.133 gist.githubusercontent.com
185.199.110.133 marketplace-screenshots.githubusercontent.com
185.199.110.133 repository-images.githubusercontent.com
185.199.110.133 user-images.githubusercontent.com
185.199.110.133 desktop.githubusercontent.com
185.199.110.133 avatars.githubusercontent.com
185.199.110.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.110.133 avatars5.githubusercontent.com
185.199.110.133 avatars6.githubusercontent.com
185.199.110.133 avatars7.githubusercontent.com
185.199.110.133 avatars8.githubusercontent.com
# End of the section
#192.30.255.112  github.com git 
#185.31.16.184 github.global.ssl.fastly.net
#140.82.114.4 github.com
#140.82.114.4 gist.github.com
#185.199.108.153 assets-cdn.github.com
#151.101.64.133 raw.githubusercontent.com
#151.101.108.133 gist.githubusercontent.com
#151.101.108.133 cloud.githubusercontent.com
#151.101.108.133 camo.githubusercontent.com
#151.101.108.133 avatars0.githubusercontent.com
#151.101.108.133 avatars1.githubusercontent.com
#151.101.108.133 avatars2.githubusercontent.com
#151.101.108.133 avatars3.githubusercontent.com
#151.101.108.133 avatars4.githubusercontent.com
#151.101.108.133 avatars5.githubusercontent.com
#151.101.108.133 avatars6.githubusercontent.com
#151.101.108.133 avatars7.githubusercontent.com
#151.101.108.133 avatars8.githubusercontent.com 

一般来说, 如果是 hosts 配置起因, 增加上述的代码, 是没有问题的

如果还是不行, 思考是否是 DNS 配置导致, 更换更快的DNS

(应用 ping 简略查看 DNS 速度 )

over….

相干文章

  • GitHub,Idea 官网连的慢?看这一篇就够了!
  • Github 无法访问解决办法
  • 解决:ping github.com 遇到“申请超时”(OK)
  • github 为什么拜访不了
  • Github IP 查问网址
  • github 拜访不了解决办法汇总
  • github 无法访问的解决办法 — 2020
  • github 网站无法访问解决

猜你想看

  • idea 官网无法访问怎么办?

正文完
 0