[Daily] solve github extremely slow

Maybe execute the following command, find the corresponding IP, increasing the host can be solved

nslookup github.global.ssl.fastly.Net
nslookup github.com

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#53

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

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

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

Locate the following IP
Non-authoritative answer:

Modify the host for the next following ip
13.229.188.59 github.com
66.220.146.94 github.global.ssl.fastly.net

Refresh restart the DNS
/etc/init.d/networking restart

Guess you like

Origin www.cnblogs.com/taoshihan/p/11908632.html