https://www.jianshu.com/p/642e658577f1
1)百度搜索’查詢網址dns,或者’可以直接輸入網址
https://tool.chinaz.com/dns/
http://tool.chinaz.com/dns?type=1&host=github.com&ip=

2)檢測https://github.com得到響應IP,添加IP到hosts文件中
windows C:\Windows\System32\drivers\etc\hosts
Mac 在Finder中同時按“Shift”“Command”“G”三個鍵,輸入“/etc/hosts”
linux /etc/hosts
方法一直接修改hosts文件,添加下面IP到文件中
13.229.188.59 github.com
140.82.112.4 github.com