question

BrianBehm-1390 avatar image
2 Votes"
BrianBehm-1390 asked simonaco commented

Azure Static Web Apps with Google Domains DNS

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://docs.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-static-web-appsazure-webapps-custom-domains
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.

1 Answer

anthonychu-msft avatar image
0 Votes"
anthonychu-msft answered simonaco commented

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.

· 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.

Is there an ETA when a standard solution will be given to this problem?

My domain DNS is google and I hosted a static web page on Azure Static Web App (standard plan). I don't want to use Google CDN and complicate things.

0 Votes 0 ·
simonaco avatar image simonaco MeerHussainAbrar-1006 ·

@MeerHussainAbrar-1006 we're looking at improving this experience but in the meantime another approach you might consider is using Azure DNS to manage your DNS records. You would still use Google to manage your domain but delegate DNS hosting to Azure DNS. This requires you to create a public Azure DNS zone and update your DNS settings on the google domain to point to the Azure DNS name servers listed on the overview page. Then you can configure your ALIAS record in Azure DNS to point to the Azure Static Web App resource.


1 Vote 1 ·