Route53 - Manual Update of IP address for A record of EBS Environment

1

Hi,

I have a hosted zone testabc.com in Route53. Under this hosted zone, I have two records.

  1. testabc.com A 1.1.1.1
  2. www.testabc.com CNAME testabc-env.elasticbeanstalk.com

For the above 2 records.

Record 1:

  • 1.1.1.1 is just an example, we have to update this IP address very regularly, as we are using the IP address of the EBS environment

Record 2:

  • We link the EBS environment URL directly to it

My question is, because the IP address of the EBS environment changes regularly on AWS side, we have to manually update the the value for the A record shown above. Is there a recommended way to do that, so that we can access the website via both testabc.com and www.testabc.com ?

<Edited on 15 June>

Just wondering, would it be possible for AWS to assign an elastic IP to the EBS environment, so that we don't need to update the IP value for the A record every now and then?

Thank you.

1개 답변
0

Hi,

I understand you want to access your website from both testabc.com and www.testabc.com. The issue you facing CX is due to CNAME limitation, where CNAME cannot co-exist with another record. To solve this, when DNS is Hosted in R53, we normally advised CX to use A (alias) in root/parent domain. Below will be the necessary steps needed to take when creating an alias[1]:

Lwazi
답변함 2년 전
  • Hi Lwazi,

    Thank you for your reply.

    Currently, my CNAME record is working fine. However for my A record value, we have to keep checking up the IP address of the EBS environment, and updating it accordingly. Also, based on the link that you provided, for EBS environment URL that does not include the region, we can only use CNAME to route the traffic via the subdomain, which we have already done so (refer. Record 1). In that case, how should we go about if we want to route traffic to the root domain testabc.com as well.

    Thank you.

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

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

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