首页 > 解决方案 > 如何使用 SRV 记录指向 80 以外的端口

问题描述

我在 AWS 控制台中有这条 Route 53 记录:

Type: SRV - Service Locator

价值是:

1 10 4000 ec2-54-xx-xx-131.us-west-2.compute.amazonaws.com

所以我希望如果我击中:

monitoring.x.teros.io

它将达到:

ec2-54-xx-xx-131.us-west-2.compute.amazonaws.com:4000

但我得到:

ERR_NAME_NOT_RESOLVED

有人知道如何使用 SRV 记录指向不在端口 80 上的某个端点吗?

标签: httpdnscnamesrv-record

解决方案


The 4000 in the SRV data of 1 10 4000 ec2-54-xx-xx-131.us-west-2.compute.amazonaws.com is the port. However, SRV records are only good if applications use them... and browsers do not.

So it seems you are in this case (your question is too vague and not really related to programming, but the error message you quote seems to come from a well known browser), and hence no SRV records will ever help you.


推荐阅读