root@OpenWrt:~# dig @202.106.46.151 www.baidu.com
; <<>> DiG 9.18.1 <<>> @202.106.46.151 www.baidu.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53410
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.baidu.com. IN A
;; ANSWER SECTION:
www.baidu.com. 285 IN CNAME www.a.shifen.com.
www.a.shifen.com. 39 IN A 110.242.68.4
www.a.shifen.com. 39 IN A 110.242.68.3
;; Query time: 9 msec
;; SERVER: 202.106.46.151#53(202.106.46.151) (UDP)
;; WHEN: Sat Jul 02 21:55:14 CST 2022
;; MSG SIZE rcvd: 90
root@OpenWrt:~# dig @202.106.46.151 www.baidu.com
; <<>> DiG 9.18.1 <<>> @202.106.46.151 www.baidu.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7202
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.baidu.com. IN A
;; ANSWER SECTION:
www.baidu.com. 1056 IN CNAME www.a.shifen.com.
www.a.shifen.com. 245 IN A 110.242.68.4
www.a.shifen.com. 245 IN A 110.242.68.3
;; Query time: 9 msec
;; SERVER: 202.106.46.151#53(202.106.46.151) (UDP)
;; WHEN: Sat Jul 02 21:55:15 CST 2022
;; MSG SIZE rcvd: 90
pppoe 下发的两个 dns, 202.106.46.151 和 202.106.195.68 都有这个问题...
相隔 1s 的两次查询, 返回的 ttl 按理来说也应该是相差 1s 才对...
这怎么会从 285s 忽然增加到 1056s...
但是公共 dns 就没有这种现象, ttl 就是很合理的每秒递减...
root@OpenWrt:~# dig @223.5.5.5 www.baidu.com
; <<>> DiG 9.18.1 <<>> @223.5.5.5 www.baidu.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34794
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.baidu.com. IN A
;; ANSWER SECTION:
www.baidu.com. 142 IN CNAME www.a.shifen.com.
www.a.shifen.com. 142 IN A 110.242.68.3
www.a.shifen.com. 142 IN A 110.242.68.4
;; Query time: 9 msec
;; SERVER: 223.5.5.5#53(223.5.5.5) (UDP)
;; WHEN: Sat Jul 02 21:56:14 CST 2022
;; MSG SIZE rcvd: 90
root@OpenWrt:~# dig @223.5.5.5 www.baidu.com
; <<>> DiG 9.18.1 <<>> @223.5.5.5 www.baidu.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12533
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.baidu.com. IN A
;; ANSWER SECTION:
www.baidu.com. 141 IN CNAME www.a.shifen.com.
www.a.shifen.com. 141 IN A 110.242.68.4
www.a.shifen.com. 141 IN A 110.242.68.3
;; Query time: 0 msec
;; SERVER: 223.5.5.5#53(223.5.5.5) (UDP)
;; WHEN: Sat Jul 02 21:56:15 CST 2022
;; MSG SIZE rcvd: 90
那么问题来了, 联通的 dns 服务器配置是不是出了什么问题...
它这个 ttl 到底是不是从权威服务器拿的...
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.