可以使用SRV记录代替反向代理吗?
我正在尝试了解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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从理论上讲,在实践中,没有网络浏览器不咨询
srv
记录。您可以创建它们,但它们将没有效果。
新的DNS
https
记录将发生变化,因为浏览器已经开始使用这些记录。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.