An Azure service that provides streamlined full-stack web app development.
Thank you for providing an update.
You have correctly added the ALIAS record (@ > lemon-ocean-0ac6eb603.azurestaticapps.net). However, the domain is still showing a 404 because Azure has not yet fully validated the domain ownership and completed certificate binding.
Recommended Steps:
- Remove the existing custom domain in the Azure portal (under your Static Web App > Custom domains). This is safe.
- Re-add the custom domain:
- Click + Add > Select Custom domain on other DNS provider.
- Enter your domain (synexil.com).
- In the validation step, select TXT as the hostname record type.
- Click Generate code to get the verification value.
- Add TXT records for validation (as per Microsoft’s instructions for apex + subdomain):
- Create a TXT record with host: _dnsauth.www and the value provided by Azure.
- For the apex domain, Microsoft also recommends a separate validation path using the _dnsauth prefix (often @ or _dnsauth depending on exact prompt).
- Keep your routing records active:
- Leave the ALIAS record for
@pointing tolemon-ocean-0ac6eb603.azurestaticapps.net. - Leave the CNAME for
wwwpointing to the same hostname.
- Leave the ALIAS record for
- Wait for propagation (DNS changes can take time, up to 72 hours in some cases, though validation is usually faster).
Once validation succeeds, Azure will automatically handle certificate issuance and binding. The 404 error typically occurs when the domain is not yet fully bound or the certificate is not provisioned.
Note on the extra TXT record: The SPF record (v0spf1 include:amazonses.com ~all) is unrelated to Static Web Apps hosting and can remain.
Reference:
https://learn.microsoft.com/en-us/azure/static-web-apps/custom-domain
https://learn.microsoft.com/en-us/azure/static-web-apps/apex-domain-external
https://learn.microsoft.com/en-us/azure/static-web-apps/custom-domain#zero-downtime-migration
Kindly let us know if the above helps or you need further assistance on this issue.
Please "accept" if the information helped you. This will help us and others in the community as well.