question

TravisH-2558 avatar image
0 Votes"
TravisH-2558 asked SnehaAgrawal-MSFT commented

Cannot point GoDaddy.com domain to Azure Static Web Apps site

I have a domain with GoDaddy.com and an Azure Static Web Apps site. I followed the instructions for pointing a custom domain to an Azure Static Web App (namely, create a CNAME record with the DNS provider and validate on the Custom Domain tab for your Azure Static Web app). A demo of these instructions can be found here. https://youtu.be/HFaVjS99sWY?t=837. The link should start at the 14 min. mark.

However, I was unable to validate on Azure. I contacted GoDaddy support and they said I would also need to add an A Record with the Azure Static Web App site IP.

Unlike other Azure Services that offer a Custom Domain tab, the Custom Domain tab for Azure Static Web Apps does not reference an IP address.

Is there way to determine my Azure Static Web App site IP address so that I can create an A Record on GoDaddy.com? Or is there an alternative way to get Azure to validate the CNAME Record on GoDaddy?

Thanks,
Travis

Custom Domain with GoDaddy: artificialintelligencemagic.com
Azure Static Web Apps Site: https://gentle-beach-050c43b1e.azurestaticapps.net/

azure-static-web-appsazure-webapps-custom-domains
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just checking if you have chance to see below response. If this answers your query, do click “Accept Answer” and Up-Vote for the same.

0 Votes 0 ·
SnehaAgrawal-MSFT avatar image
1 Vote"
SnehaAgrawal-MSFT answered

Thanks for asking question! If my understanding is correct you want to map a custom domain name to an Azure Static Web Apps application using root domains?

To elaborate root domain are your domain minus any subdomain, including www. For example, the root domain for www.example.com is example.com.

As root domain support is not available during preview, you can make it work with a little bit of DNS trickery and the help of Cloudflare.

Please refer the blog post Configure root domains in Azure Static Web Apps for details on how to configure root domain support with a Static Web App.

Hope this helps. Let us know if issue remains.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TravisH-2558 avatar image
0 Votes"
TravisH-2558 answered TravisH-2558 commented

Hi @SnehaAgrawal-MSFT,

Thank you for the quick and helpful answer. Sorry for being afk for so long.

I gave this a try. Cloudflare said that the nameserver change went through - but it is still not resolving. However, I'm going to give it more time since I only just set it up a few hours ago.

One thing that is interesting is that, even before switching the DNS responsibilities to Cloudfare, I was not able to get either the root domain (artificialintelligencemagic.com) or the www subdomain (www.artificialintelligencemagic.com) to resolve. So when GoDaddy.com was was my DNS it looked like this:

gentle-beach-050c43b1e.azurestaticapps.net - resolves
artificialintelligencemagic.com - doesn't resolve
www.artificialintelligencemagic.com - doesn't resolve

But again - I'll wait a bit to see if everything works out now that it is on Cloudflare.

Thanks again.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sure, Thanks for reply! Please let us know the outcome or in case issue persists.

Further If you want to support www.example.com or blog.example.net then you need to Map a CNAME record.

Refer to below official document link detailed step here might be helpful.
https://docs.microsoft.com/en-us/azure/static-web-apps/custom-domain#map-a-cname-record

0 Votes 0 ·

It looks like it still won't resolve.

This is what Cloudflare shows me. I believe I have the right records in place for it to work. But maybe I missed something?

62560-image.png


0 Votes 0 ·
image.png (100.9 KiB)
SnehaAgrawal-MSFT avatar image
0 Votes"
SnehaAgrawal-MSFT answered SnehaAgrawal-MSFT commented

Thanks! Could you please confirm if you have logged in to your DNS provider and changed the nameserver?

As Cloudflare gives you two new nameservers that it wants you to use instead of your current nameservers and this requires logging in to your DNS provider and changing the nameserver.

  1. Go to your domain registrar and log in.

  2. Go to wherever it is in your dashboard that allows you to manage your domain. There is usually a “Manage” button or option that
    you need to click on.

  3. From your domain dashboard, find the “nameservers” section. By default, this will be your domain registrars default DNS. You’ll need to change it to custom DNS and enter the nameservers that Cloudflare gave you.

  4. Make sure to save your changes.

Check: https://support.cloudflare.com/hc/en-us/articles/360017421192-Cloudflare-DNS-FAQ

If issue persists request you to send an email to AzCommunity[at]Microsoft[dot]com referencing this thread, we would like to work closer with you on this matter.

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SnehaAgrawal-MSFT - thank you for the quick follow up. I did move my DNS servers over to Cloudfare yesterday when I set up the CNAMEs - so I believe I'm good to go there.

I will send an email now. Thank you very much - much appreciated!

0 Votes 0 ·

@SnehaAgrawal-MSFT - progress!

I mistakenly forgot to go back and validate/add the custom domain in Azure Static Web Apps after setting up Cloudflare. I have now done this and I am to see my site at www.artificialintelligencemagic.com. However, the flattening does not appear to be working. The same URL without the www subdomain does not resolve to the Azure Static Web App page.

0 Votes 0 ·

And now the flattening is working as well. Thank you again for your help, @SnehaAgrawal-MSFT. I will accept the first answer you gave as that seems to make the most sense for others who come across this thread.

0 Votes 0 ·
Show more comments