Route53 - Manual Update of IP address for A record of EBS Environment
Hi,
I have a hosted zone testabc.com in Route53. Under this hosted zone, I have two records.
- testabc.com A 1.1.1.1
- 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.
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]:
- Sign in to the AWS Management Console and open the Route 53 console
- In the navigation pane, choose Hosted zones
- Choose the name of the hosted zone that you want to use to route traffic to your Elastic Beanstalk environment
- Choose Create record
- Specify the following values
- Choose Create records
Relevant questions
How to add PTR DNS record for my EIP without AWS-hosted Forward zone?
Accepted Answerasked 2 months agoCan you validate an ACM public certificate using a domain record in a Route 53 private hosted zone?
Accepted Answerasked 4 years agoRoute53 zone hosted on two accounts
Accepted Answerasked 4 years agoTXT Records not resolved
asked 3 years agoLooking up A record by IP address value via Route 53 API
Accepted Answerasked 6 months agoRoute53 public hosted zone not resolving for my domain
asked a month agoI have a DNS problem with one domain
Accepted Answerasked 3 years agoRoute53 - Manual Update of IP address for A record of EBS Environment
asked 22 days agoDNS A record not resolving to EC2 external IP
asked 3 years agoBoto3 Bug in response when creating a hosted zone in route53 with Python
asked 7 months ago
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.