坐标广州,运营商联通,一直在用 119.29.29.29 ,对于 114 DNS 相比,前者会将解析到南方一些 CDN ,而 114 会解析到山东之类的,前者更加靠近。
最近使用了 pdnsd 作为 DNS 缓存,由于众所周知的原因,使用 TCP 方式查询,这时候诡异的事情出来了,使用 TCP 方式查询,例如 www.qq.com 会解析到电信的 CDN 上面,然而 UDP 或者 114 则不会有这个问题。
dig @119.29.29.29 www.qq.com +tcp
结果
; <<>> DiG 9.8.3-P1 <<>> @119.29.29.29 www.qq.com +tcp
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43918
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.qq.com. IN A
;; ANSWER SECTION:
www.qq.com. 285 IN A 59.37.96.63
www.qq.com. 285 IN A 14.17.42.40
www.qq.com. 285 IN A 14.17.32.211
;; Query time: 409 msec
;; SERVER: 119.29.29.29#53(119.29.29.29)
;; WHEN: Sun May 8 00:25:04 2016
;; MSG SIZE rcvd: 76
dig @119.29.29.29 www.qq.com
结果
; <<>> DiG 9.8.3-P1 <<>> @119.29.29.29 www.qq.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50450
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.qq.com. IN A
;; ANSWER SECTION:
www.qq.com. 123 IN A 112.90.83.112
;; Query time: 17 msec
;; SERVER: 119.29.29.29#53(119.29.29.29)
;; WHEN: Sun May 8 00:25:59 2016
;; MSG SIZE rcvd: 44
dig @114.114.114.114 www.qq.com +tcp
结果
; <<>> DiG 9.8.3-P1 <<>> @114.114.114.114 www.qq.com +tcp
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37406
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.qq.com. IN A
;; ANSWER SECTION:
www.qq.com. 47 IN A 112.90.83.112
;; Query time: 55 msec
;; SERVER: 114.114.114.114#53(114.114.114.114)
;; WHEN: Sun May 8 00:26:20 2016
;; MSG SIZE rcvd: 44
dig @114.114.114.114 www.qq.com
结果
; <<>> DiG 9.8.3-P1 <<>> @114.114.114.114 www.qq.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53984
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.qq.com. IN A
;; ANSWER SECTION:
www.qq.com. 30 IN A 112.90.83.112
;; Query time: 566 msec
;; SERVER: 114.114.114.114#53(114.114.114.114)
;; WHEN: Sun May 8 00:26:49 2016
;; MSG SIZE rcvd: 44
同样地, V2EX 、七牛、又拍云的域名均有这个问题。虽然也不是什么严重问题啦,但是希望 119.29.29.29 的伙计们留意一下这个问题,我暂时就先用 114 啦~
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.