Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请求iOS app能够支持主动查询DNS记录中的SVCB/HTTPS记录 #774

Open
Jackie264 opened this issue Dec 26, 2024 · 4 comments
Open
Labels
enhancement 这是特性,特性~

Comments

@Jackie264
Copy link

Suggestion(建议)

我发现当使用https记录来提供服务端口的时候,App并不会查询该记录,从而直接访问 music.example.com:443
而实际上DNS记录是:

 root@ThinkPad-X1:~# dig music.example.com https

; <<>> DiG 9.18.28-0ubuntu0.24.04.1-Ubuntu <<>> music.example.com https
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26252
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;music.example.com.            IN      HTTPS

;; ANSWER SECTION:
music.example.com.     10      IN      CNAME   svc.example.com.
svc.example.com.       10      IN      HTTPS   1 . alpn="h2,http/1.1" port=22351

;; Query time: 4 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Thu Dec 26 10:46:58 CST 2024
;; MSG SIZE  rcvd: 102

Usage scenario or reason(使用场景或原因)

当使用浏览器(Safari/Chome/Firefox)访问的时候,是正常打开的(貌似Edge不支持),但是当用ios 客户端就必须主动加上端口号,否则就会连接超时。

INFO 10:37:15.963 (+1:30:54.515019)
   INFO 💡 当前网络连接类型:无
WARNING 10:37:17.316 (+1:30:55.867409)
WARNING ⚠️ 未检测到已配置的媒体服务器
   INFO 10:37:21.270 (+1:30:59.821304)
   INFO 💡 点击登录按钮
   INFO 10:37:21.271 (+1:30:59.822811)
   INFO 💡 组装访问地址:https://music.example.com/
  ERROR 10:37:26.276 (+1:31:04.827182)
  ERROR ⛔ 登录失败:DioException [connection timeout]: The request connection took longer than 0:00:05.000000 and it was aborted. To get rid of this exception, try raising the RequestOptions.connectTimeout above the duration of 0:00:05.000000 or improve the response time of the server.
   INFO 10:38:30.742 (+1:32:09.293739)
   INFO 💡 点击登录按钮
   INFO 10:38:30.744 (+1:32:09.295326)
   INFO 💡 组装访问地址:https://music.example.com:22351/
WARNING 10:38:35.262 (+1:32:13.813659)
WARNING ⚠️ 当前为移动网络,跳过自动下载
WARNING 10:38:35.263 (+1:32:13.814200)
WARNING ⚠️ 同步任务正在进行
   INFO 10:38:35.397 (+1:32:13.948373)
   INFO 💡 loaded new albums: 20
   INFO 10:56:00.148 (+1:49:38.699303)
   INFO 💡 歌曲占用空间: 55.59 MB,元数据占用空间: 14.85 MB,系统占用空间: 2.06 MB
@Jackie264 Jackie264 added the enhancement 这是特性,特性~ label Dec 26, 2024
@gitbobobo
Copy link
Owner

可以邮件发我一下域名,我这边试试看。

这方面没了解过,不保证能实现

@Jackie264
Copy link
Author

可以邮件发我一下域名,我这边试试看。

这方面没了解过,不保证能实现

抱歉,新手找了半天没找到,请问您的邮箱是?

@ljcbaby
Copy link

ljcbaby commented Jan 19, 2025

SVCB/HTTPS + HTTP3/QUIC + ECH 的话可以实现在加宽任一端口上开加密网页服务,这个可能会成为后续的主流技术方案,可以兼容一下。

@ljcbaby
Copy link

ljcbaby commented Jan 20, 2025

可以邮件发我一下域名,我这边试试看。

这方面没了解过,不保证能实现

https://taoshu.in/dns/dns-svcb-https.html
可以参考一下这篇文章,对于这两个新类型讲的比较细致了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 这是特性,特性~
Projects
None yet
Development

No branches or pull requests

3 participants