amazon-web-servicesdnssrv

DNS record to port


I have my brand new website hosted on amazon ec2:

As you can see, it is exposed on port 8020 because 80 is already in use by another web service.

I'd like my domain (hosted on godaddy) to point to that website. I know it is not possible to point to port 8020 with a A or CNAME record. It's not clear if it's possible with SRV or other ways. I tried this, but it does not work:

SRV redirection

Any help ?


Solution

  • You can add an Application Load Balancer in front of your instance which can forward traffic to 8020 and have CNAME mapping to ALB url.