Skip to content

Instantly share code, notes, and snippets.

@able8
Last active March 8, 2020 10:06
Show Gist options
  • Save able8/03ac602cfd09c4661cbde4618dcd709a to your computer and use it in GitHub Desktop.
Save able8/03ac602cfd09c4661cbde4618dcd709a to your computer and use it in GitHub Desktop.
修改 hosts 文件,解决 gist.github.com 被墙无法访问的问题,可以快速打开啦

在家可以访问 GitHub,但 gist.github.com 打不开,应该是被DNS污染。

解决办法是修改 hosts 文件,按大家说的改成如下确实可以访问,但速度很慢。

192.30.253.118 gist.github.com 
192.30.253.119 gist.github.com

我查了下github.com的IP,让后都换成解析出的3个IP地址,然后速度很快啦!

➜  ~ dig github.com +short
13.250.177.223
52.74.223.119
13.229.188.59
13.250.177.223 gist.github.com
52.74.223.119 gist.github.com
13.229.188.59 gist.github.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment