Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github无法访问解决办法 #146

Open
yanyue404 opened this issue Jun 11, 2020 · 0 comments
Open

Github无法访问解决办法 #146

yanyue404 opened this issue Jun 11, 2020 · 0 comments

Comments

@yanyue404
Copy link
Owner

yanyue404 commented Jun 11, 2020

添加 dns 解析

C:\Windows\System32\drivers\etc\hosts

在线工具:IPAddress.com The Best IP Address Tools

https://github.com.ipaddress.com/www.github.com

Domain github.com
IP Address 140.82.112.3
Web Server Location United States

https://githubusercontent.com.ipaddress.com/avatars0.githubusercontent.com

Domain githubusercontent.com
IP Address 199.232.96.133
Web Server Location United States

hosts 文件追加

# localhost name resolution is handled within DNS itself.

  140.82.112.3  github.com

# 图片资源

  199.232.96.133 githubusercontent.com
  199.232.96.133 raw.githubusercontent.com
  199.232.96.133 camo.githubusercontent.com
  199.232.96.133 gist.githubusercontent.com
  199.232.96.133 cloud.githubusercontent.com
  199.232.96.133 assets-cdn.githubusercontent.com
  199.232.96.133 user-images.githubusercontent.com
  199.232.96.133 avatars0.githubusercontent.com
  199.232.96.133 avatars1.githubusercontent.com
  199.232.96.133 avatars2.githubusercontent.com
  199.232.96.133 avatars3.githubusercontent.com
  199.232.96.133 avatars4.githubusercontent.com
  199.232.96.133 avatars5.githubusercontent.com
  199.232.96.133 avatars6.githubusercontent.com
  199.232.96.133 avatars7.githubusercontent.com
  199.232.96.133 avatars8.githubusercontent.com

windows 刷新 dns 解析(cmd)

xiaoyueyue@LAPTOP-FBB3CVU9 C:\Users\xiaoyueyue\Desktop
$ ipconfig /flushdns

Windows IP 配置

已成功刷新 DNS 解析缓存。

参考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant