3

我在 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 上的某个端点吗?

4

1 回答 1

2

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.

于 2019-07-05T18:28:40.963 回答