Search code examples
azurednssubdomaincnameazure-front-door

Root domain in Azure FrontDoor configuration


I am trying to set up the routing for the Apex/root domain of my website(myrootdomain.eu) in Azure FrontDoor.

Reference :https://learn.microsoft.com/en-us/azure/frontdoor/front-door-how-to-onboard-apex-domain

Crated the Alias record with @.myrootdomain.eu in Azure DNS against the Azure resource as FrontDoor. A CNAME was created like this : afdverify.myrootdomain.eu

When i try adding the custom domain(myrootdomain.eu) into the frontend host of FrontDoor, it is giving the error CNAME record is not found. What additional step is required here . Is there any setting or mapping to be done in my DNS 123domain or frontdoor for this domain : afdverify.myrootdomain.eu

What should be the mapping in domain provider (123domain in my case) for the naked domain(myrootdomain.eu) ?

Could not find any thing about that in the reference doc.


Solution

  • If you have hosted your domain in Azure DNS, (that is to edit the NS records and replace the NS records with the Azure DNS name servers in the registrar's DNS management page), you do not need to map in your original domain provider. It takes just a few seconds on my side to wait for the DNS taking place for the Apex/root domain in Azure Front Door.

    After creating an alias record for zone apex, it creates a zone apex record pointing to your Front Door resource and also a CNAME record mapping 'afdverify' (example - afdverify.contosonews.com) to afdverify.<name>.azurefd.net. enter image description here

    If you have finished the above steps correctly, it usually takes some time for DNS propagation, you could check it via whatsmydns or viewdns. As the comment said, you can check if the CNAME is effective or not using nslookup or google dig tool.

    enter image description here