Route53 Subdomain IP Mapping Issue

0

Hi I have an EC2 instance running a web server with a fixed IP address; I have a route53 table entry for a sub-domain pointing to that IP address; when I enter either the subdomain name or the ip address in my browser (either Chrome or MS Edge) the subdomain is immediately replaced with the IP address. While it works as required, it doesn't look professional.

The domain is also hosted at Route53 though there is no live host for the primary domain at this time.

My record in the domain is fairly simple and (I think) in accordance with requirements:

Record Name: subdomain.maindomain.com Type: A Differentiator: - Value/Route Traffic to: s3-website-ap-southeast-2.amazonaws.com

There is also a separate NS record for maindomain.com in Route53 pointing to a number of AWS DNS endpoints.

Is there some trick to configuring the ROute53 for the subdomain to prevent it being replaced by the IP address in the browser.

Thanks in advance

asked 2 years ago419 views
2 Answers
1
  1. do what Michale_K says, i.e. set subdomain.maindomain.com -> A Record with the fixed IP.
  2. Type "http://subdomain.maindomain.com:8501" in your browser to visit your web app.
AWS
answered 2 years ago
0

Looks like you have the domain pointing to a s3 bucket where you are doing redirects:

  • subdomain.maindomain.com -> to a S3 bucket that redirects to -> ec2 fixed IP.

You want the domain A record value to just be the fixed IP:

  • subdomain.maindomian.com -> A Record with the fixed IP.
AWS
answered 2 years ago
  • Hi, thanks so much for the response. Unfortunately the application I'm using uses a specific port number (8501) so the IP address is modified with the port number ie http://11.111.111.111:8501/. Sadly Route53 want let me add the port number to the IP entry in the A record and I can't see there is any other other than to map the URL. Can you point me to documentation on what to do in that case? Thx.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions