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년 전438회 조회
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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠