欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

[日常] 解决github速度特别慢

程序员文章站 2023-11-08 17:16:46
执行下面这俩命令,找到对应的IP,增加host就能解决 nslookup github.global.ssl.fastly.Netnslookup github.com root@tao-PC:/var/www/html/go-project/test# nslookup github.global ......

执行下面这俩命令,找到对应的ip,增加host就能解决

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

找到下面的ip
non-authoritative answer:

修改host为下面下面的ip
13.229.188.59 github.com
66.220.146.94 github.global.ssl.fastly.net

重启刷新dns
/etc/init.d/networking restart