License & Subscription Issues

Fix Microsoft 365 Domain TXT Record Verification

Elise WilliamsElise Williams Nov 27, 2026 868 views

Question details

The user needs to verify a domain in Microsoft 365 after its TXT verification record was created for a different host name.

Fix Microsoft 365 Domain TXT Record Verification
Product
Microsoft 365 domain verification
Device & OS
not provided
Scenario
Adding a domain or host name to Microsoft 365 and verifying ownership through DNS.
Observed behavior
Microsoft 365 cannot verify the TXT record because it is published for the root domain while verification is checking a host such as www.
Before you start

Open the Microsoft 365 admin center and your authoritative DNS provider's control panel. Confirm the exact domain or host being verified and copy the complete TXT value from the verification wizard.

Solution 1Recommended

Publish the verification TXT record at the correct DNS host

Use this method when the TXT record exists at the root domain but Microsoft 365 is checking a different host name.

1
Check the verification details

In the Microsoft 365 admin center, go to Settings > Domains, select the domain, and open its verification instructions. Note the exact host being verified and copy the complete TXT value, such as MS=msXXXXXXXX.

2
Add the TXT record

In your DNS provider's DNS management page, add a TXT record for the host shown in the wizard. For example, enter www if the provider automatically appends the domain name and the target is www.example.com; follow the provider's format if it requires the full name.

3
Set the value and TTL

Paste the complete Microsoft verification value into the record's Value or Content field. Set the TTL to 3600 seconds, or one hour, if available, and save the record.

4
Check DNS and verify

After allowing time for DNS propagation, look up the TXT record for the exact host, for example with nslookup -type=TXT www.example.com. Then return to Settings > Domains in the Microsoft 365 admin center and select Verify.

Publish the verification TXT record at the correct DNS host
Keep unrelated DNS records: Do not delete unrelated TXT records, such as SPF records. If your provider reports a conflict or requires a single verification value, review obsolete verification records before removing them.
Free Microsoft Office alternative

Use WPS Office as an alternative for everyday documents

WPS Office is a free, lightweight alternative with a familiar interface for working with Office files. It supports a smooth move for everyday document editing, but it cannot fix Microsoft 365 domain or DNS verification.

Edit documents, spreadsheets, and presentations without resolving a Microsoft 365 domain verification issueCompatible with Microsoft Office formats, including DOCX, XLSX, and PPTXFamiliar interface that makes it easy to start working with existing filesFree and lightweight for everyday office tasks
microsoft office alternative - wps office

Frequently Asked Questions

Should the TXT record use @ or www as its host?

Use the host required by the Microsoft 365 verification instructions. At many DNS providers, @ represents the root domain and www represents the www subdomain; check your provider's naming format before saving.

How can I check whether the TXT record is publicly visible?

Run nslookup -type=TXT followed by the exact host name being verified, such as www.example.com. Check that the results include the complete Microsoft verification value.

Why does verification still fail after I save the record?

DNS changes can take time to propagate. Confirm the record is in the authoritative DNS provider's zone, check the host and value for errors, and retry Verify in Settings > Domains after the record is publicly visible.

Do I need to delete my existing TXT records?

Usually not. Keep unrelated records, including SPF records. Review obsolete verification records only if your DNS provider reports a conflict or requires a single verification value.