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?

5
  • Are you sure the cname is correct? Did you use FQDN for target of the record?
    – Kamil J
    Apr 6, 2019 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. Apr 6, 2019 at 21:52
  • so there is something like elb.doggox.lol (CNAME) => public-elb.doggox.lol ?
    – Kamil J
    Apr 6, 2019 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. Apr 6, 2019 at 22:33
  • Hi @KamilJ, precisely elb.doggos.lol (CNAME) => example-1.us-east-2.elb.amazonaws.com Apr 7, 2019 at 14:26

1 Answer 1

1

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/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .