首页 > 技术文章 > centos7 git下载速度慢

wstong 2020-04-23 21:41 原文

nslookup命令

yum -y install bind-utils
[root@iZ1i4qd6oynml0Z ~]# nslookup github.global.ssl.fastly.Net
Server:		100.100.2.136
Address:	100.100.2.136#53

Non-authoritative answer:
Name:	github.global.ssl.fastly.Net
Address: 199.59.149.244
;; Got SERVFAIL reply from 100.100.2.136, trying next server
** server can't find github.global.ssl.fastly.Net: SERVFAIL

[root@iZ1i4qd6oynml0Z ~]# nslookup github.com 
Server:		100.100.2.136
Address:	100.100.2.136#53

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

vim /etc/hosts,修改host,加入下面代码:

199.59.149.244 github.global.ssl.fastly.net
13.229.188.59 github.com

刷新网络设置

/etc/init.d/network restart

虽然还是只有20kb/s,但比5kb/s好多了

推荐阅读