Fix Microsoft 365 Domain TXT Record Verification
Question details
The user needs to verify a domain in Microsoft 365 after its TXT verification record was created for a different host name.

- 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.
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.
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.
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.
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.
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.
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.

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.

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.




