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

Travis H 116 Reputation points
2021-01-18T19:33:25.537+00:00

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 App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,865 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
761 questions
{count} votes

Accepted answer
  1. SnehaAgrawal-MSFT 18,286 Reputation points
    2021-01-19T10:14:09.6+00:00

    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.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Travis H 116 Reputation points
    2021-01-31T23:32:19.547+00:00

    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. SnehaAgrawal-MSFT 18,286 Reputation points
    2021-02-01T17:34:57.423+00:00

    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.