[平常] 解決github速度特別慢

執行下面這倆命令,找到對應的IP,增長host就能解決html

nslookup github.global.ssl.fastly.Net
nslookup github.comgit

root@tao-PC:/var/www/html/go-project/test# nslookup github.global.ssl.fastly.Net
Server: 124.207.160.106
Address: 124.207.160.106#53github

Non-authoritative answer:
Name: github.global.ssl.fastly.Net
Address: 66.220.146.94.net

root@tao-PC:/var/www/html/go-project/test# nslookup github.com
Server: 124.207.160.106
Address: 124.207.160.106#53rest

Non-authoritative answer:
Name: github.com
Address: 13.229.188.59htm

找到下面的IP
Non-authoritative answer:ip

修改host爲下面下面的ip
13.229.188.59 github.com
66.220.146.94 github.global.ssl.fastly.netssl

重啓刷新DNS
/etc/init.d/networking restartit

相關文章
相關標籤/搜索