基於 DNSPod 提供的解析能力,本站現已支持 HTTPS 記錄 (HTTPS record) 即 Type65 記錄,截至發文時,該記錄相關規範仍在處理中,尚未最終確定,但已有部分廠商開始使用,如 CloudFlare、Apple 等。在 ios14 以後的版本上,系統會優先查詢 HTTPS 記錄,因此合理的配置 HTTPS 記錄可以有效的提升 ios 用戶的訪問體驗。其他瀏覽器如 Chrome 對該記錄的支持目前還處於試驗階段,可通過 chrome://flags/ 配置開啟。

記錄相關介紹

HTTPS 記錄是一種新的 DNS 記錄類型,關於其詳細介紹請參閱:draft-ietf-dnsop-svcb-https-11

配置方法

由於該記錄仍在草案處理中,本文不再詳細介紹配置方法,具體可參見:設置 HTTPS 記錄

相關測試

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; <<>> DiG 9.16.30 <<>> r2wind.com https
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21184
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;r2wind.com. IN HTTPS

;; ANSWER SECTION:
r2wind.com. 10 IN HTTPS 1 alpn="h3,h3-29,h2" ipv4hint=104.26.15.53,172.67.70.22,104.26.14.53 ipv6hint=2606:4700:20::681a:f35,2606:4700:20::681a:e35,2606:4700:20::ac43:4616

;; Query time: 5 msec
;; SERVER: 192.168.3.1#53(192.168.3.1)
;; WHEN: Fri Nov 11 13:16:08 ;; MSG SIZE rcvd: 96
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; <<>> DiG 9.19.5-1+0~20220921.84+debian11~1.gbp190ab0-Debian <<>> r2wind.com https @8.8.4.4 +subnet=1.1.1.0/24
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59916
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
; CLIENT-SUBNET: 1.1.1.0/24/24
;; QUESTION SECTION:
;r2wind.com. IN HTTPS

;; ANSWER SECTION:
r2wind.com. 120 IN HTTPS 1 cloudflare.r2wind.com. alpn="h3,h3-29,h2" ipv4hint=104.26.15.53,172.67.70.22,104.26.14.53 ipv6hint=2606:4700:20::681a:f35,2606:4700:20::681a:e35,2606:4700:20::ac43:4616

;; Query time: 109 msec
;; SERVER: 8.8.4.4#53(8.8.4.4) (UDP)
;; WHEN: Fri Nov 11 13:17:53 CST 2022
;; MSG SIZE rcvd: 170