教程地址:
https://www.jianshu.com/p/0493dcc15d6f
查看域名的ip地址网站:
https://www.ipaddress.com/](https://www.ipaddress.com/
步骤
第一步获取域名的IP地址
我们可以利用https://www.ipaddress.com/ 来获得以下GitHub域名的IP地址
image.png
第二步hosts文件追加配置:
目录:C:\Windows\System32\drivers\etc
如果没有hosts文件,则新建个,以管理员打开文件,把获取的内容黏贴进去
例如:
# GitHub Start
192.30.253.112 github.com
192.30.253.119 gist.github.com
151.101.184.133 assets-cdn.github.com
151.101.184.133 raw.githubusercontent.com
151.101.184.133 gist.githubusercontent.com
151.101.184.133 cloud.githubusercontent.com
151.101.184.133 camo.githubusercontent.com
151.101.184.133 avatars0.githubusercontent.com
151.101.184.133 avatars1.githubusercontent.com
151.101.184.133 avatars2.githubusercontent.com
151.101.184.133 avatars3.githubusercontent.com
151.101.184.133 avatars4.githubusercontent.com
151.101.184.133 avatars5.githubusercontent.com
151.101.184.133 avatars6.githubusercontent.com
151.101.184.133 avatars7.githubusercontent.com
151.101.184.133 avatars8.githubusercontent.com
# GitHub End
第三步,刷新 DNS 缓存
在终端或CMD中,执行以下命令:
ipconfig /flushdns
网友评论