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.

已提問 2 年前檢視次數 435 次
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.

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

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

回答問題指南