http - 如何使用 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 上的某个端点吗?
解决方案
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.
推荐阅读
- react-native - headerright 中的条件问题
- javascript - 通过 JQuery / JS 用其他人的组合框选择更新组合框
- excel - 通过宏在 SAP 中保存 XLSX 时出错
- java - Java泛型类型问题
- qt - 为什么QT循环内的While循环不阻塞QT GUI
- r - 计算特定因变量组的 R 标准差
- python - gensim WikiCorpus 的问题 - 将 chunkize 别名为 chunkize_serial;(__mp_main__ 而不是 __main__?)
- javascript - 避免 RXJS 中的嵌套订阅
- jquery - jQuery 无法从材料引导程序中删除类
- php - PHP array_walk 不会改变数组的值