-1

I'm not expert in anything related with networks. I've reasearched through Internet but I'm not able to get with the solution for what I need.

It's simple. I've bought a domain in GoDaddy.com and I've redirected it succesfully to my AWS EC2 instance (Ubuntu instance), as you can see:

http://danigarcia-dev.com

But, as you can see, the resulting addres is:

http://ec2-52-26-205-227.us-west-2.compute.amazonaws.com/

But, I would like my domain and the EC2 instance web addresses to be the same: danigarcia-dev.com

Is that possible somehow? How can I get an alias for it in AWS?

2 Answers2

1

You most likely have set your domain up for web forwarding rather than DNS redirection. To get redirection without URL rewriting, you'll need to point your domain apex to your EC2 instance using a CNAME record.

So, using the GoDaddy documentation, create a CNAME record with @ as the Host, and ec2-52-26-205-227.us-west-2.compute.amazonaws.com as the Points to.

Craig Watson
  • 9,575
  • 3
  • 32
  • 47
0

The solution was, based on @CraigWatson answer, the next configuration on GoDaddy DNS Zone File of the danigarcia-dev.com domain:

  • Create a CNAME record with:
    • www as the Host
    • ec2-52-26-205-227.us-west-2.compute.amazonaws.com as the Points to
  • A forwarding to the www.danigarcia-dev.com web address