我使用的方法: 打开网站http://tool.chinaz.com/dns/ ,在A类型的查询中输入github.com,找到最快访问的ip地址,我的是:20.205.243.166。复制下来放入hosts文件末尾(C:\Windows\System32\drivers\etc),如下

# localhost name resolution is handled within DNS itself.

# 127.0.0.1 localhost

# ::1 localhost

20.205.243.166 github.com

终极方法 记住三个网站: github网址查询:https://ipaddress.com/website/github.com github域名查询:https://ipaddress.com/website/github.global.ssl.fastly.net github静态资源ip:https://ipaddress.com/website/assets-cdn.github.com

1、打开hosts文件(C:\Windows\System32\drivers\etc) 2、hosts文件末尾放入以下两个 IP 地址:

# GitHub Start

140.82.114.4 github.com

199.232.69.194 github.global.ssl.fastly.net

# GitHub End

保存退出 3、在 CMD 命令行中执行下面语句 来刷新 DNS,重启浏览器之后就能进入Github 网址。

ipconfig/flushdns

然后直接访问

参考文章

评论可见,请评论后查看内容,谢谢!!!
 您阅读本篇文章共花了: