DNS | github访问不了解决方法汇总

Posted martin

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了DNS | github访问不了解决方法汇总相关的知识,希望对你有一定的参考价值。

问题描述

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官网无法访问怎么办?

以上是关于DNS | github访问不了解决方法汇总的主要内容,如果未能解决你的问题,请参考以下文章

dns异常不能上网是啥原因

免费的dns服务器(更换dns服务器有时可以解决某些网站(如爱奇艺访问不了的问题))

关于Github网页打不开与图片无法加载解决方法

解决github无法加载图片

解决github无法加载图片

DNS解析常见问题及解决方法汇总