在https://www.ipaddress.com/查找http://github.com和http://global-ssl.fastly.Net对应的ip地址
151.101.113.194 http://global-ssl.fastly.Net
192.30.253.112 http://github.com
windows下:
1、用记事本打开hosts文件(C:\Windows\System32\drivers\etc\hosts),将上述查到的对应的内容写入。
151.101.113.194 http://global-ssl.fastly.Net
192.30.253.112 http://github.com
2、刷新DNS缓存:
ipconfig /flushdns
linux下:
1、将下列内容加入 /etc/hosts文件中
151.101.113.194 http://global-ssl.fastly.Net
192.30.253.112 http://github.com
2、刷新DNS缓存
sudo /etc/init.d/networking restart