無法從虛擬盒裝來賓 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

相關內容