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

已提問 2 年前檢視次數 434 次
2 個答案
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
已回答 2 年前
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
已回答 2 年前
  • 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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南