执行下面这俩命令,找到对应的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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。