Goutham Kamre
Goutham Kamre

Reputation: 1

How to redirect my root domain to a www domain that is in Azure premium frontdoor?

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

Answers (1)

Sampath
Sampath

Reputation: 3724

Steps to redirect your root domain to a www domain that is in Azure premium frontdoor:

enter image description here

  • code reference from git

  • Add a CNAME record for your root domain that points to Front Door profile. enter image description here

  • Use Azure DNS for Azure Front Door endpoints to enable CNAME flattening or DNS chasing. enter image description here

  • 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. enter image description here

  • Associate your apex domain with a TLS certificate to enable HTTPS.

enter image description here

  • Use an Azure Front Door-managed certificate, Azure Front Door attempts to automatically rotate (renew) the certificate.

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

Related Questions