I added the custom domain www.contoso to my cdn but when I try to add contoso it says:
We couldn't find a DNS record for 'contoso' that points to 'cdn-name.azureedge'. Before you can associate a domain with this CDN endpoint, you need to create a CNAME record with your DNS provider for 'contoso' that points to 'cdn-name.azureedge'.
The only answers I find on this are using the Azure dns, I am not. My dns provider is porkbun and I added an alias pointing to the cdn, yet I'm still getting this issue. Is there a step that I am missing or is it just not possible?
I added the custom domain www.contoso to my cdn but when I try to add contoso it says:
We couldn't find a DNS record for 'contoso' that points to 'cdn-name.azureedge'. Before you can associate a domain with this CDN endpoint, you need to create a CNAME record with your DNS provider for 'contoso' that points to 'cdn-name.azureedge'.
The only answers I find on this are using the Azure dns, I am not. My dns provider is porkbun and I added an alias pointing to the cdn, yet I'm still getting this issue. Is there a step that I am missing or is it just not possible?
Share Improve this question asked Nov 16, 2024 at 21:52 ClassicRanchClassicRanch 357 bronze badges1 Answer
Reset to default 1The error occurs because Azure CDN requires a valid CNAME record pointing your domain (e.g., contoso) to the CDN endpoint (cdn-name.azureedge) before allowing you to associate the domain. However, contoso (apex or root domain) cannot directly have a CNAME record due to DNS restrictions. Root domains cannot use CNAME records but can use ALIAS/ANAME.