可以使用SRV记录代替反向代理吗?

发布于 2025-01-23 02:38:25 字数 291 浏览 3 评论 0原文

我正在尝试了解DNS中SRV记录的用例。

本文在此处输入链接说明 DNS“服务”(SRV)记录指定了特定服务的主机和端口。这是否意味着可以使用SRV记录将HTTP流量引导到没有反向代理的情况下?

例如,如果我有示例: SRV记录将www指向[IP]:8080?

I'm trying to understand the use case of a SRV record in DNS.

This article enter link description here states that "The DNS "service" (SRV) record specifies a host and port for specific services". Does this mean that a SRV record can be used to direct HTTP traffic to a specific port without a reverse proxy?

For instance, if I had example.com:80 and www.example.com:8080 can I create a SRV record that points www to [IP]:8080?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

倾城月光淡如水﹏ 2025-01-30 02:38:25

这是否意味着可以使用SRV记录将HTTP流量引导到没有反向代理的情况下?

从理论上讲,在实践中,没有网络浏览器不咨询srv记录。
您可以创建它们,但它们将没有效果。

新的DNS https记录将发生变化,因为浏览器已经开始使用这些记录。

Does this mean that a SRV record can be used to direct HTTP traffic to a specific port without a reverse proxy?

In theory, yes, in practice, no as web browsers do not consult SRV records.
You can create them, but they will have no effect.

Things will change with the new DNS HTTPS records, as those are already started to be used by browsers.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文