IP address for AWS hosting account required to input A value in GoDaddy DNS zone.

0

Hello, I have a website that is being hosted by AWS, directly linked with Github, so we are not using Amazon Route 53. The domain is from GoDaddy. I need to input the 'A' value (which is an IP address from the hosting account) Does anyone know what is the IP address for AWS?

  • What service within AWS are you using to host your website? Is it an EC2 instance, an S3 bucket, etc?

    • If you are hosting your website on a standalone EC2 instance, you can attach an elastic IP to it and map the A record residing on GoDaddy to the EIP.
    • If you are using an Application Load Balancer on top of your EC2/Lambda/ECS resource, it returns the CNAME by default. Although you can get the IP address of the ALB using nslookup, it will change over time. The best solution is to use a Network Load Balancer on top of your Application Load Balancer. In this case, your Application Load Balancer would be a Target Group sitting behind the NLB Target Group, and your ALB would have the EC2 instance as a Target Group.
    • Another workaround is to host your application in AWS Lightsail and attach an elastic IP to it.
1 Answer
3
  • If you are hosting your website on a standalone EC2 instance, you can attach an elastic IP to it and map the A record residing on GoDaddy to the EIP.

  • If you are using an Application Load Balancer on top of your EC2/Lambda/ECS resource, it returns the CNAME by default. Although you can get the IP address of the ALB using nslookup, it will change over time. The best solution is to use a Network Load Balancer on top of your Application Load Balancer. In this case, your Application Load Balancer would be a Target Group sitting behind the NLB Target Group, and your ALB would have the EC2 instance as a Target Group.

  • Another workaround is to host your application in AWS Lightsail and attach an elastic IP to it.

Please don't forget to accept the answer if i was able to answer your query in order to close this thread and help other community members.

profile picture
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions