An Azure service that provides a cloud content delivery network with threat protection.
Hello Emil Paaske Kvandal
You can resolve the issue by deleting the CNAME, adding the www TXT manually, and once it’s validated, deleting the TXT and re-adding the CNAME. This process will work
Meantime,
Firstly, Why Pending can hang around?
- when you add the
_dnsauth.<subdomain>TXT record, Front Door polls every few minutes but will cache the last lookup result for up to one hour. - Even if external tools (nslookup, dig) see the new value immediately, Front Door may still hold the old (or no-record) result until its next re-check and cache-expire cycle.
What you can do to mitigate it
- Consider lowering the DNS TTL for your TXT record. If possible, set the TXT record’s TTL to 300 seconds (5 minutes) or, at most, 3600 seconds (1 hour). This helps changes propagate more quickly and ensures that Front Door’s cache expires sooner.
- It’s best to pre-provision the TXT record in your DNS before clicking “Add custom domain.” By having the correct TXT record in place first, the initial Front Door domain check will recognize the valid record right away.
- If you need to, you can automate or script the “Regenerate validation token” process. Regenerating the token creates a new TXT value and clears Front Door’s old cache entry. You can use tools like Azure CLI or ARM calls (such as az network front-door custom-domain regenerate-validation-token) to detect when a domain is stuck in a pending state and trigger a regeneration automatically.
- Whenever possible, use Azure DNS. Azure DNS usually offers predictable propagation times and TTL behavior.
Usually Pending clears in under 24 hours. If it still shows Pending after 24 hours with the correct TXT in place, you can delete the custom domain from Front Door and add it back (which also kicks off a fresh validation cycle).
Hope that helps!
Reference:
Configure a custom domain on Azure Front Door by using the Azure portal
Can you please update us if the action plan provided was helpful?
Should there be any follow-up questions or concerns, please let us know and we shall try to address them.
and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.