Fix Microsoft Entra ID Custom Domain Verification After Adding a TXT Record
Question details
The user needs to verify a custom domain in Microsoft Entra ID after adding a DNS TXT record.

- Product
- Microsoft Entra ID
- Device & OS
- not provided
- Scenario
- A custom domain is being added to a Microsoft Entra ID tenant using DNS verification.
- Observed behavior
- Domain verification fails even though a TXT record has been added.
Open the domain verification instructions in the Microsoft Entra admin center and keep the supplied TXT name and value available. Sign in to the DNS provider that hosts the domain's authoritative records.
Check the authoritative DNS TXT record and retry verification
Use this method to correct a misplaced or mismatched TXT record and confirm that it is publicly visible before retrying.
In the Microsoft Entra admin center, open Microsoft Entra ID > Custom domain names or Domain names, select the domain, and review the TXT record name and value.
Run a public nameserver lookup, such as `nslookup -type=NS example.com`, replacing example.com with your domain. Confirm which provider manages the authoritative DNS zone before editing its records.
In the authoritative provider's DNS settings, add or edit the TXT record using the exact name and value shown by Microsoft. For a root-domain record, the provider may require @ or a blank host field; follow its instructions.
Run `nslookup -type=TXT example.com 1.1.1.1`, replacing example.com with the record's full name. Confirm that the Microsoft verification value appears. If it does not, allow time for DNS propagation and check again.
Return to the domain in the Microsoft Entra admin center and select Verify once the correct TXT value is visible in public DNS.

Work with Office files while resolving your domain setup
WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format support make it easier to move existing files, but it does not fix Microsoft Entra ID domain verification.

Frequently Asked Questions
Why can't Microsoft Entra ID see my TXT record?
The record may be at the wrong DNS provider, have an incorrect name or value, or not have propagated yet. Check the authoritative DNS zone and use a public TXT lookup before selecting Verify again.
Should I turn off Cloudflare proxying for the TXT record?
No. Cloudflare does not proxy TXT records. Instead, check that the verification record is published in the authoritative DNS zone with the exact name and value Microsoft supplied.
What host name should I enter for a root-domain TXT record?
Many DNS providers use @ or a blank host field for the root domain. Check your provider's instructions and the name shown in the Microsoft Entra verification details.
What if the correct TXT record is visible but verification still fails?
Retry Verify in the Microsoft Entra admin center. If it still fails, check whether the domain is already verified in another Microsoft Entra tenant; a custom domain cannot be verified in multiple tenants at the same time.




