Azure CDN custom domain / redirect from GoDaddy

Andrey Kniazev 21 Reputation points
2020-12-15T08:52:12.813+00:00

I haven't managed to configure the root domain as a custom domain for the Azure CDN, so I decided to use Permanent Forwarding as a work around. It is ended up as I am getting a privacy error from the browser when I try to open my website without "wwww".

Here is my setup:
48160-image.png

Can someone help me with this. My goal is to allow users to access lorehub.app with and without www.

Azure Content Delivery Network
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 49,261 Reputation points Microsoft Employee
    2020-12-17T08:30:48.8+00:00

    Hello @Andrey Kniazev ,

    In order to access your website without www (which is your apex/root domain), you need to onboard your root domain to Azure CDN endpoint as mentioned in the below article:
    https://video2.skills-academy.com/en-us/azure/cdn/onboard-apex-domain

    However, the challenge that comes up is DNS protocol prevents the assignment of CNAME records at the zone apex. For example, if your domain is contoso.com; you can create CNAME records for somelabel.contoso.com; but you can't create CNAME for contoso.com itself. This problem can be resolved by using alias records in Azure DNS. Mapping your apex or root domain to your CDN profile requires CNAME flattening or DNS chasing. This functionality is supported by Azure DNS for CDN endpoints. There are other DNS providers as well that support CNAME flattening or DNS chasing, however, Azure CDN recommends using Azure DNS for its customers for hosting their domains.

    I am not very familiar with GoDaddy DNS but after researching, I couldn't find a similar feature in GoDaddy. You may need to contact them for further information.
    Please refer : https://in.godaddy.com/community/Managing-Domains/CNAME-ANAME-or-ALIAS-support-for-APEX-domain/td-p/136281

    So not sure if this can be done via GoDaddy. But if you are interested in using Azure DNS, you can delegate your domain to Azure DNS and manage your DNS records in Azure DNS and here you will be able to create an Alias record which will help you onboard your apex domain to Azure CDN.
    Please refer : https://video2.skills-academy.com/en-us/azure/dns/dns-domain-delegation
    https://video2.skills-academy.com/en-us/azure/dns/dns-delegate-domain-azure-dns

    Post this, you should be able to access lorehub.app with and without www.

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful