Microsoft Account Errors

Fix Microsoft Entra ID Custom Domain Verification After Adding a TXT Record

Adam DavisAdam Davis Nov 14, 2026 868 views

Question details

The user needs to verify a custom domain in Microsoft Entra ID after adding a DNS TXT record.

Fix Microsoft Entra ID Custom Domain Verification After Adding a 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.
Before you start

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.

Solution 1Recommended

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.

1
Find the verification details

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.

2
Identify the DNS host

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.

3
Check the TXT record

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.

4
Check public DNS

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.

5
Retry verification

Return to the domain in the Microsoft Entra admin center and select Verify once the correct TXT value is visible in public DNS.

Check the authoritative DNS TXT record and retry verification
Cloudflare TXT records: Cloudflare does not proxy TXT records, so there is no proxy setting to disable for the verification TXT record. Check that the record is in the authoritative Cloudflare zone and has the correct name and value.
Free Microsoft Office alternative

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.

Edit DOCX, XLSX, and PPTX files with Microsoft Office format compatibilityUse a familiar interface for everyday document workKeep working on domain setup notes and checklistsUse a free, lightweight Office alternative
microsoft office alternative - wps office

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.