ubuntu 下访问 github 不能访问,其他机器没问题
- 0次
- 2021-07-14 11:36:10
- idczone
不知道哪里出了问题 nslookup github.com 结果无异常 dig 亦正常,想知道我应该从何处入手,排查问题.
; <<>> DiG 9.9.5-3-Ubuntu <<>> github.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55854
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;github.com. IN A
;; ANSWER SECTION:
github.com. 9 IN A 192.30.252.128
;; Query time: 6 msec
;; SERVER: 127.0.1.1/>;; WHEN: Tue Aug 12 15:48:04 CST 2014
;; MSG SIZE rcvd: 55
[email&nslookup github.com
Server: 127.0.1.1
Address: 127.0.1.1answer:
Name: github.com
Address: 192.30.252.128
sudo hostname home 解决问题
ping github 返回ip但是
PING github.com (192.30.252.129) 56(84) bytes of data.
From bogon (192.168.0.77) icmp_seq=1 Destination Host Unreachable
From bogon (192.168.0.77) icmp_seq=2 Destination Host Unreachable
From bogon (192.168.0.77) icmp_seq=3 Destination Host Unreachable
是被劫持了吗?
可以换种方式,其实如果有台国外主机,就不用担心墙的问题了,我给大家推荐免费的linux云主机,完全可以在上面用git等各种linux工具,https://www.nitrous.io/join/i928M5rjYtY?utm_source=nitrous.io&utm_medium=copypaste&utm_campaign=referral
。。。不要随便@god
这个问题你解决了吗 我也遇到相同的问题了