I own a domain, call it doggos.lol that uses Route 53 for DNS. I want to create a subdomain elb.doggos.lol that resolves to the public DNS of an ELB. I created a CNAME to route elb.doggos.lol to an Alias target (the ELB public DNS).
I saved the record but the route is not working. If I execute an HTTP request against the public DNS of the ELB, I get the correct REST response from the server it sends to. However, if I go to the subdomain in the CNAME record, I get DNS_PROBE_FINISHED_NXDOMAIN. Testing the CNAME record on Route 53 returns a REFUSED DNS response code.
Am I missing something?
Answer
Turns out for Alias targets, you must use an A record (or AAAA for IPv6). I switched the record from CNAME to A and this resolved the problem.
https://aws.amazon.com/premiumsupport/knowledge-center/route-53-create-alias-records/
No comments:
Post a Comment