CNAME not resolving to Azure Static Website

I’ve created a new website on Azure using their new Azure Static Website feature. I owned the domain Algorist dot io through google domains. I created a free account on Cloud Flare and added the two Name Servers to my account under Name Servers (Use custom name servers). After this, I created two cname entries: www -> https:// thankful-smoke-059c81910 dot azurestaticapps dot net/ is DNS only and algorist dot io -> www dot algorist dot io is proxied.

When I go to thankful-smoke-059c81910 dot azurestaticapps dot net/, it resolves perfectly. When I go to www.algorist dot io or algorist dot io, I get a 404 site not found. I flushed my dns to no avail


Tracing route to algorist dot io []
over a maximum of 30 hops:

1 1 ms <1 ms <1 ms amplifi.lan []
2 8 ms 8 ms 9 ms
3 9 ms 9 ms 8 ms []
4 15 ms 8 ms 12 ms
5 16 ms 11 ms 14 ms
6 13 ms 14 ms 13 ms
7 10 ms 9 ms 9 ms <------ This is cloud flare!!

Trace complete.

nslookup -q=CNAME www dot algorist dot io
Server: amplifi dot lan

Non-authoritative answer:
www dot algorist dot io canonical name = thankful-smoke-059c81910 dot azurestaticapps dot net

What should I do for this issue? I just want it to resolve and then I want to start setting up pages!

root domain should point to Azure IP.

Since you are using Azure Static Web Apps, you should follow the documentation here so that they knows you are doing a CNAME pointing:

Thank you. I’ll follow this documentation.

1 Like

Something like this

I went through this documentation. It directed me here:

I followed the steps in that step by step instruction and I started having the errors that I posted above.

Try to disable the proxy for www first.

Did you validate the custom domain in Azure?

Error 404 is coming from Azure right? So definitely is not DNS issue.

1 Like

I am getting a site can’t be reached now after trying the suggestions above.

How about the validation?

I don’t really know what to do from here. This is my first time setting this up. I have the CI/CD set up. It deploys to azure. I can get to the website using azures goofy url. I don’t know what to do at this point.

Yes, I have validated the custom domain in azure

It just started working!!! Thank you for that Eric.

1 Like

Great. Welcome.

I do have one more issue. When I put the url into a text message, it is redirecting to*

Is this a cloud flare redirect issue or is this something else?

Did you configure any page rules?

Also, when I visit I still get Error 404 from Azure. Use page rules to redirect to, and make sure is proxied:

Notice how your algorist dot io link is going to algorist dot io/* ? Why is it doing that?

I was able to replicate your issue.

Can you check your page rules? Share the screenshot.

Somehow your issue has disappeared :thinking: