今天訪問 http://raw.githubusercontent.com/ 時,提示無法訪問,可能是因為某些眾所周知的原因導致 DNS 污染,最終通過修改 host 解決問題。
解決方案
查詢真實 IP
通過 IPAddress.com 查詢 http://raw.githubusercontent.com/ 的真實 IP,
可知其真實 IP 為 199.232.68.133。
修改 hosts
CentOS 及 macOS 直接在終端輸入
sudo vi /etc/hosts
編輯 hosts 文件,新增下列內容
199.232.68.133 raw.githubusercontent.com
保存即可
