用瀏覽器訪問 IPAddress.com 使用 IP Lookup 工具獲得這個域名的ip地址,輸入上述域名后,分別獲得github.com和github.global.ssl.fastly.net對應的ip
linux 下修改/etc/hosts文件 增加
192.168.xx.xx github.com
185.31.17.xx github.global.ssl.fastly.net
在命令行中輸入sudo dscacheutil -flushcache
windows 下修改 c:\Windows\System32\drivers\etc\hosts 增加
192.168.xx.xx github.com
185.31.17.xx github.global.ssl.fastly.net
在cmd命令窗口 輸入ipconfig /flushdns 使hosts 生效