为什么到 http://graph.facebook.com 的 wget 会解析到我的服务器的 IP?

为什么到 http://graph.facebook.com 的 wget 会解析到我的服务器的 IP?

这完全没有道理,我花了 3 个小时才弄清楚。突然间,我所有连接到 Facebook 的脚本都停止工作了,所以我尝试这样做:

root@s01 [~]# wget http://graph.facebook.com
--2015-11-18 15:27:47--  http://graph.facebook.com/
Resolving graph.facebook.com... MY.SERVERS.IP
Connecting to graph.facebook.com|MY.SERVERS.IP|:80... connected.
HTTP request sent, awaiting response... 200 OK
Cookie coming from graph.facebook.com attempted to set domain to graph.facebook.com
Length: unspecified [text/html]
Saving to: `index.html.2'

    [ <=>                                                                                                                   ] 85,752      --.-K/s   in 0s      

2015-11-18 15:27:47 (397 MB/s) - `index.html.2' saved [85752]

root@s01 [~]#

奇怪的是,当我连接到 graph.facebook.com 时,它显示的是我服务器的 IP。而且我也无法通过 lynx 访问它,我遇到了同样的问题。

当我执行“nslookup但是”或“我”时host,我获得了 Facebook 图形服务器的正确 IP。这里发生了什么?

root@s01 [~]# nslookup graph.facebook.com
Server:     8.8.8.8
Address:    8.8.8.8#53

Non-authoritative answer:
graph.facebook.com  canonical name = api.facebook.com.
api.facebook.com    canonical name = star.c10r.facebook.com.
Name:   star.c10r.facebook.com
Address: 31.13.70.1

root@s01 [~]# host graph.facebook.com
graph.facebook.com is an alias for api.facebook.com.
api.facebook.com is an alias for star.c10r.facebook.com.
star.c10r.facebook.com has address 31.13.70.1
star.c10r.facebook.com has IPv6 address 2a03:2880:f00d:1:face:b00c:0:1
star.c10r.facebook.com mail is handled by 10 msgin.vvv.facebook.com.
root@s01 [~]#

相关内容