Search code examples
azureazure-cdnazure-dns

Azure DNS Root Domain Pointing to Azure CDN Endpoint


If I were to use Azure DNS, can I point my root domain to an Azure CDN endpoint?

It's kind of like creating an A record that points to an Azure CDN endpoint.

Is this possible with Azure DNS?

Just to paint the big picture here, I'm trying to host a static website on Azure through Blob Storage AND want to be able to use my root domain with https. I'm aware I can point to a host such as www.mydomain.com but I want to point to my root domain.

I'm also aware that there are tricks I can use such as set up a CNAME that points my root domain to www.mydomain.com.

I really don't want to use any of these workarounds and point my root domain to my Azure CDN endpoint and I'm willing to switch to Azure DNS for that IF it allows me to do so.


Solution

  • Yes, It's possible with Azure DNS. You could use alias records to point your DNS zone apex to Azure CDN endpoints.

    For more details about Announcing Alias records for Azure DNS