无法从虚拟机箱体客户机 Ubuntu 14.04(64 位)内部解析单个站点

无法从虚拟机箱体客户机 Ubuntu 14.04(64 位)内部解析单个站点

奇怪的是,我可以从客户操作系统访问所有网站,但是bitbucket.org,同时可以从主机操作系统访问它。

知道为什么吗?

正在 ping:

vagrant@cabinet:~/app$ ping google.com
PING google.com (173.194.32.136) 56(84) bytes of data.
64 bytes from 173.194.32.136: icmp_seq=1 ttl=63 time=2.68 ms
64 bytes from 173.194.32.136: icmp_seq=2 ttl=63 time=4.89 ms
64 bytes from 173.194.32.136: icmp_seq=3 ttl=63 time=6.51 ms
64 bytes from 173.194.32.136: icmp_seq=4 ttl=63 time=6.14 ms
^C
--- google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3011ms
rtt min/avg/max/mdev = 2.689/5.059/6.513/1.495 ms
vagrant@cabinet:~/app$ ping superuser.com
PING superuser.com (198.252.206.16) 56(84) bytes of data.
64 bytes from stackoverflow.com (198.252.206.16): icmp_seq=1 ttl=63 time=143 ms
64 bytes from stackoverflow.com (198.252.206.16): icmp_seq=2 ttl=63 time=137 ms
64 bytes from stackoverflow.com (198.252.206.16): icmp_seq=3 ttl=63 time=139 ms
^C
--- superuser.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2005ms
rtt min/avg/max/mdev = 137.228/140.307/143.958/2.810 ms
vagrant@cabinet:~/app$ ping bitbucket.org
ping: unknown host bitbucket.org

查找:

vagrant@cabinet:~/app$ nslookup bitbucket.org
Server:         10.0.2.3
Address:        10.0.2.3#53

** server can't find bitbucket.org: SERVFAIL

vagrant@cabinet:~/app$ nslookup google.com
Server:         10.0.2.3
Address:        10.0.2.3#53

Non-authoritative answer:
Name:   google.com
Address: 173.194.32.129
Name:   google.com
Address: 173.194.32.137
...

答案1

如果您无法解析 bitbucket.org,那么很可能是您的 DNS 服务器有问题。要验证这一点,只需从另一个 DNS 服务器进行查询,如下所示:

nslookup bitbucket.org 8.8.8.8

相关内容