http://github.com
和 http://global-ssl.fastly.Net
對應的IP地址,例如:
192.30.253.112
對應的 http://github.com
151.101.185.194
對應的 github.global.ssl.fastly.net
/etc/hosts
,拷貝出該hosts
文件;將下列內容加入到拷貝出的hosts
文件中:git
192.30.253.112 github.com 151.101.185.194 github.global.ssl.fastly.net 151.101.184.249 global-ssl.fastly.net 185.199.111.153 assets-cdn.github.com
hosts
文件;刷新DNS緩存:sudo dscacheutil -flushcache
github
hosts
文件(路徑在:C:\Windows\System32\drivers\etc\hosts
)將下列內容加入到拷貝出的hosts
文件中:windows
192.30.253.112 github.com 151.101.185.194 github.global.ssl.fastly.net 151.101.184.249 global-ssl.fastly.net 185.199.111.153 assets-cdn.github.com
刷新DNS緩存:ipconfig /flushdns
緩存