思路:
修改系统hosts文件,绕过国内DNS解析,直接访问GitHub的IP地址,提高GitHub访问速度。
步骤:
- 去IP地址查询网站查询GitHub相关网址对应的IP地址,这里选择:
http://ip.tool.chinaz.com
。 - 将查询道德IP地址添加到系统hosts文件,hosts文件地址:
C:\Windows\System32\drivers\etc\hosts
。 - 刷新系统本地DNS缓存,CMD命令:
ipcongig/flushdns
。
#GitHub 52.74.223.119 github.com 13.229.188.59 github.com 203.208.39.99 github.com 140.82.113.4 github.com 52.74.223.119 developer.github.com 13.229.188.59 developer.github.com 203.208.39.99 developer.github.com 140.82.113.4 developer.github.com 185.199.108.153 assets-cdn.github.com 185.199.109.153 assets-cdn.github.com 185.199.110.153 assets-cdn.github.com 185.199.111.153 assets-cdn.github.com 203.208.39.99 assets-cdn.github.com 31.13.72.23 github.global.ssl.fastly.net 66.220.152.17 github.global.ssl.fastly.net 69.63.181.12 github.global.ssl.fastly.net 66.249.89.104 github.global.ssl.fastly.net 88.191.249.183 github.global.ssl.fastly.net