最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Mapping custom root domain to Windows Azure CDN does not work - Stack Overflow

programmeradmin8浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

The 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.

发布评论

评论列表(0)

  1. 暂无评论