An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
Hello Kacper Fertacz ,
Greetings! Thanks for raising this question in the Q&A forum.
Your DNS setup is actually correct as-is. For apex/root domains on Static Web Apps, the official validation record is a TXT record with Host: @ containing the generated code, exactly what you've configured. There has been some conflicting community advice floating around suggesting a _dnsauth.www.<domain> record instead, but that pattern doesn't match Microsoft's current documented apex domain validation flow and isn't something you should switch to based on what you've already confirmed at the authoritative nameserver.
Given everything you've already ruled out, first let's close out a couple of the remaining possibilities before treating this as backend-only:
Confirm no split-brain DNS Since the domain is delegated to jola.ns.jdm.pl, confirm that's genuinely the authoritative server the parent .io registry actually delegates to (not a leftover secondary or an old NS record still cached at the registry level). Run:
nslookup -type=NS mockee.io
against a public resolver like 8.8.8.8, and compare the returned NS set to what you queried directly.
Double check there is only one TXT record at the apex If a previous validation attempt left an old TXT record behind (from an earlier delete/re-add cycle) alongside the new one, some validators can get confused reading multiple TXT values at the same name. Query directly against the authoritative server and confirm only one TXT record exists at @:
nslookup -type=TXT mockee.io jola.ns.jdm.pl
Try one more clean delete and recreate, with a short TTL Delete the custom domain binding, wait a full 10 minutes this time (not just until the portal allows re-adding), set the TXT record TTL to 300 seconds, then re-add. This won't fix a backend wedge but rules out any lingering cached validation state tied to the previous token.
If all of the above still leaves it stuck, this matches a known pattern reported by other Static Web Apps users where the apex-domain validator specifically gets wedged server-side with no error surfaced to the customer API, while a sibling www binding on the same resource validates normally within minutes. In that pattern, DNS, CAA, and TTL are all confirmed correct exactly as you've done, and the fix requires Microsoft to manually re-trigger or inspect the validator on the backend, since there is no customer-facing lever to force an immediate re-check.
Please open a support case under Web > Static Web Apps > Custom domain / SSL and include:
- Static Web App resource ID and subscription ID
- The exact domain name (
mockee.io) - Timestamps of each delete/re-add cycle and the corresponding validation tokens used
- The
nslookupoutput confirming the TXT record at the authoritative server - A note that the
wwwsubdomain (if registered) validated normally, if applicable, since that helps the engineer isolate the wedge to the apex-specific code path
You can also file an issue on the Azure/static-web-apps GitHub repository, since the Static Web Apps engineering team actively monitors and has resolved this exact "stuck apex validator" symptom for other users there.
If this answer helps you kindly accept the answer which will help others who have similar questions.
Best Regards,
Jerald Felix.