Connecting to a Root Domain - AWS Route 53 EC2

I installed an EC2 instance with elastic IP. I registered a domain with Namecheap and transferred my name servers from them to route 53.

I created an A-IP4 entry and connected my resilient IP address. Does not work.

Then I decided to try creating A-IP4 using www. It worked.

I tried setting the pointer from www.mysite.com to mysite.com, no luck. I searched for many hours in Amazon docs, but still can't figure out how to set it up. Does anyone know how to configure this so that I can access my root domain? I would not want to be stuck with www.

+4
source share
2 answers

AFAIK, you cannot create an A record at the top of the zone, only an AWS alias type.

An alias can link to an ELB, S3, CloudFront site or other Route 53 recordset. You have several options:

a) place your instance behind the ELB and create example.com as an Alias ​​entry pointing to your ELB. Or,

b) Create example.com as an alias that points to CNAME www.example.com.

+2
source

I had the same problem and was a little embarrassed. Turns out it's pretty easy. First create a name www.example.com pointing to your elastic ip as entry A. Then create an additional entry A as an alias and leave the name field blank. This will allow your ec2 instance to resolve the vertex zone (root) and www.

+1
source

Source: https://habr.com/ru/post/1490676/


All Articles