- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
Hi Frank,
Depends on your DNS provider, AWS provides alias records within Amazon Route 53 and you can create an alias record at the top node of a DNS namespace, also known as the zone apex (sometimes called naked domain).
Several DNS providers have custom solutions to work around this problem too, including:
- ALIAS at DNSimple
- ANAME at DNS Made Easy
- ANAME at easyDNS
- CNAME (virtual) at CloudFlare
Best Regards,
Ricardo Makino
It seems now that it is possible to use CNAME apex.
There was an update in specification, more details in this stackoverflow: https://serverfault.com/a/947095
I personally was able to set apex CNAME on my domain on my dns provider, which redirects to cloudfront distribution where I host my single page application.
Everything works!
So now it is just a matter of whether your DNS provider supports apex CNAME records.
The solution that worked for me after struggling through a lot (I am using the hostinger DNS) :
- Delete the A record that points to the static IP and add an ALIAS record instead that is pointing to the CloudFront URL
- After that add a CNAME record with www so that it points out the root domain i.e. mydomain.com.
Please note down the A record before you delete in case if it doesn't work for you
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata 2 anni fa