最近一些机器github解析到本地回环地址127.0.0.1
怎么回事呢?最近一些机器github解析到本地回环地址127.0.0.1
刚开始都是指向ipv6的本地地址,后来把ipv6协议关闭,就指向了ipv4本地回环地址:
C:\Users\Admin>ping github.com
Pinging github.com [127.0.0.1] with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
检查代理
netsh winhttp show proxy
没有代理啊:
C:\Users\Admin>netsh winhttp show proxy
Current WinHTTP proxy settings:
Direct access (no proxy server).
查看,发现有问题
C:\Users\Admin>nslookup github.com 192.168.1.1
服务器: UnKnown
Address: 192.168.1.1
非权威应答:
名称: github.com
Addresses: ::1
127.0.0.1
C:\Users\Admin>nslookup github.com 8.8.8.8
服务器: dns.google
Address: 8.8.8.8
非权威应答:
名称: github.com
Addresses: ::1
127.0.0.1
可能是劫持了?
推荐的查毒软件:Malwarebytes https://www.malwarebytes.com/
找到fastgithub软件问题
原来是因为前段时间安装了fastgithub软件的问题,我说都指向本地127.0.0.1地址了,为啥还能上github...原来是这么回事。
停止fastgithub服务
fastgithub.exe stop
问题解决:
C:\FastGIthub>ping github.com
Pinging github.com [20.205.243.166] with 32 bytes of data:
Reply from 20.205.243.166: bytes=32 time=82ms TTL=110
Reply from 20.205.243.166: bytes=32 time=82ms TTL=110
20.205.243.166 的 Ping 统计信息:
数据包: 已发送 = 2,已接收 = 2,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
最短 = 82ms,最长 = 82ms,平均 = 82ms
总结
也就是前段时间安装的fastgithub这个软件,造成了干扰,导致ping的时候,都指向了自己。
fastgithub这个软件加速了github 网站的速度,但是导致了git clone等都命令都失败,所以最终停止了fastgithub的服务
fastgithub.exe stop
机器终于恢复正常了。
ps,fastgithub加速的时候,因为Windows10这台机器的问题,其作为宿主机,启动的所有虚拟机,也无法连通github,不光是git clone无法使用,浏览器也无法连上。当然停止服务后,这些虚拟机也都正常了。