How to Add and Verify a Test Domain in Office 365
Question details
The user wants to add and verify a test domain in Office 365.

- Product
- Microsoft 365 admin center
- Device & OS
- not provided
- Scenario
- The user wants to use a domain for testing in an Office 365 tenant.
- Observed behavior
- A private local domain cannot normally be verified because Microsoft checks for an ownership record in public DNS.
Use a publicly registered domain or a public subdomain you control, and confirm that you can edit its public DNS records. You also need an account with permission to manage domains in the Microsoft 365 admin center.
Verify a Public Test Domain Using a DNS TXT Record
Use this method when you have a registered domain or public subdomain available for testing.
Sign in to the Microsoft 365 admin center, open Settings > Domains, and select Add domain. Enter the public domain or subdomain you want to use.
Choose the TXT record verification option and copy the host name and TXT value displayed by Microsoft.
Open the DNS management page at your domain's public DNS provider. Add a TXT record using the host name and value provided by Microsoft, then save it.
Return to Settings > Domains in the Microsoft 365 admin center and select Verify. If verification fails, allow time for DNS propagation and try again.
Follow the remaining domain setup prompts for the services you intend to test. Review any proposed MX or other DNS changes before applying them, since they can affect existing services.

Work With Office Files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and support for common Microsoft Office formats, making it easy to move existing files. It does not replace Microsoft 365 domain verification.

Frequently Asked Questions
Can I verify a domain that exists only on my local network?
Not normally. Microsoft checks an ownership record in public DNS, so a record available only through private DNS is generally not sufficient.
Can I use a subdomain for testing?
Yes, you can use a public subdomain if you control its DNS and can publish the verification record Microsoft provides for it.
Where do I find the Microsoft verification record?
In the Microsoft 365 admin center, go to Settings > Domains, add your domain, and choose the TXT record verification option to see the required host and value.
Why does verification fail after I add the TXT record?
Check that the record is saved with the correct host and value at the public DNS provider. DNS changes may take time to propagate, so wait and select Verify again in Settings > Domains.




