0

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?

  • Are you sure the cname is correct? Did you use FQDN for target of the record? – Kamil J Apr 6 '19 at 21:07
  • yes the cname on route 53 is named elb.doggos.lol and the FQDN of the alias target will hit that endpoint if you paste into the address bar. Very confused why I'm getting DNS REFUSED. – Neil Philip Apr 6 '19 at 21:52
  • so there is something like elb.doggox.lol (CNAME) => public-elb.doggox.lol ? – Kamil J Apr 6 '19 at 22:19
  • 1
    @NeilPhilip please provide the real domain or use the officially established example names like example.com et al. rather than making up domain names. – Michael - sqlbot Apr 6 '19 at 22:33
  • Hi @KamilJ, precisely elb.doggos.lol (CNAME) => example-1.us-east-2.elb.amazonaws.com – Neil Philip Apr 7 '19 at 14:26
0

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/

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.