Azure Static Web Apps with Google Domains DNS

Brian Behm 26 Reputation points
2021-09-13T03:13:33.357+00:00

I am setting up an Azure Static Web App and with a custom domain. The www sub-domain has been configured in Azure Static Web App configuration and I have added a TXT record in DNS to establish ownership of the domain. I am now at the step in the following documentation to add an ALIAS record to the DNS so my root domain can be resolved.

https://learn.microsoft.com/en-us/azure/static-web-apps/custom-domain?wt.mc_id=azurestaticwebapps_inline_inproduct_general&tabs=azure-dns#create-an-alias-record

My domain registrar is Google Domains and I have learned that they do not support the record types ALIAS, ANAME or root domain CNAMES (so no CNAME flattening). I spent some time on a support chat with Google Domains and they were not able to help me find a work around.

So, my www domain (i.e. www.mydomain.com) is working great in DNS and the web site comes up just fine. The root level domain (i.e. mydomain.com) is not able to be configured in Google Domains due to lack of support for the recommend record types in the document above.

Is there a work-around for Google Domains DNS or other registrars that do not support these record types?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,933 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anthony Chu - MSFT 861 Reputation points Microsoft Employee
    2021-09-13T04:26:19.213+00:00

    As you’ve found, Google DNS does not support alias-like records that are needed for domains at the zone apex to work with Static Web Apps. This is due to the globally distributed nature of Static Web Apps; there is no single, stable IP that can be used.

    The current workaround is to create a GCP Cloud CDN with your static web app as the backend. We understand that this is not ideal and are looking into longer term plans to provide static IPs as a fallback for situations like these.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.