Reputation: 1
How to redirect my root domain to a www domain that is in Azure premium frontdoor?
Example:
My root domain: csonline.com
My Frontdoor custom Domain: [ www.csonline.com ]
I have created custom domain and added that records to the public dns. When i google www.csonline.com page is loading but if i google http://csonline.com or https://csonline.com thorowing error as DNS_PROBE_FINISHED_NXDOMAIN
(https://i.sstatic.net/2eRgx.png)
Upvotes: 0
Views: 711
Reputation: 3724
Steps to redirect your root domain to a www domain that is in Azure premium frontdoor:
code reference from git
Add a CNAME record for your root domain that points to Front Door profile.
Use Azure DNS for Azure Front Door endpoints to enable CNAME flattening or DNS chasing.
Validate the domain by creating a DNS TXT record. The name of the TXT record must be of the form _dnsauth.{subdomain}.
Azure Front Door provides a unique value for your TXT record when you start to add the domain to Azure Front Door.
Associate your apex domain with a TLS certificate to enable HTTPS.
Before it does so, Azure Front Door checks whether the DNS CNAME record is still pointed to the Azure Front Door endpoint. Apex domains don't have a CNAME record pointing to an Azure Front Door endpoint, so the auto-rotation for managed certificate fails until the domain ownership is revalidated.
Upvotes: 1