有人能解释一下为什么在我的 Ubuntu 13.04 中,Facebook 网站和 YouTube 网站无法通过 Chrome 或 Firefox 打开。除了这两个网站之外,其他网站都可以打开。我真的需要帮助。
结果来自ip addr
:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1402 qdisc pfifo_fast state UP qlen 1000
link/ether 00:23:18:a1:c1:96 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.103/24 brd 192.168.0.255 scope global eth0
inet6 fe80::223:18ff:fea1:c196/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 40:61:86:9c:18:cf brd ff:ff:ff:ff:ff:ff
victor@victornolii:~$ ping -c 4 youtube.com
PING youtube.com (120.28.26.50) 56(84) bytes of data.
64 bytes from 120.28.26.50: icmp_req=1 ttl=50 time=905 ms
64 bytes from 120.28.26.50: icmp_req=2 ttl=50 time=2155 ms
64 bytes from 120.28.26.50: icmp_req=4 ttl=50 time=1796 ms
答案1
您有 DNS 问题。
从ping
命令中,我看到你的系统解析youtube.com
为120.28.26.50
。嗯,那是不是Youtube 或 Google。不,那是菲律宾的互联网服务提供商。这太可怕了。有人想在这里充当“中间人”!请注意。
尝试在您的系统上使用 Google Public DNS。请按照此答案中的说明进行操作:https://askubuntu.com/a/310752/88802
$ whois 120.28.26.50
% [whois.apnic.net node-7]
% Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
inetnum: 120.28.0.0 - 120.28.255.255
netname: GLOBET-PH
descr: Globe Telecom/Innove Communication
descr: Internet Service Provider, Makati City
country: PH
[...]
并且它没有反向 DNS(所有 Google 服务器都有!):
$ host 120.28.26.50
Host 50.26.28.120.in-addr.arpa not found: 2(SERVFAIL)
在荷兰,它看起来像这样(你应该有类似的结果 - 尽管 IP 地址当然会有所不同):
$ whois 173.194.65.93 # result of ping youtube.com
[...]
NetRange: 173.194.0.0 - 173.194.255.255
CIDR: 173.194.0.0/16
OriginAS: AS15169
NetName: GOOGLE
[...]
OrgName: Google Inc.
OrgId: GOGL
Address: 1600 Amphitheatre Parkway
City: Mountain View
StateProv: CA
PostalCode: 94043
Country: US
$ host 173.194.65.93
93.65.194.173.in-addr.arpa domain name pointer ee-in-f93.1e100.net.
答案2
尝试安装受限软件包:
sudo apt-get install ubuntu-restricted-extras
答案3
我遇到了同样的错误。将接口的 MTU 更改为 1464 后问题得到解决。原始值为 1500。