How to use a SRV record to point to port other than 80

Viewed 993

I have this Route 53 record in the AWS console:

Type: SRV - Service Locator

And the value is:

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

so I was hoping that if I hit:

monitoring.x.teros.io

that it would reach:

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

but I am getting:

ERR_NAME_NOT_RESOLVED

anyone know how to use a SRV record to point to some endpoint that is not on port 80?

1 Answers

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.

Related