Others

How to Add and Verify a Test Domain in Office 365

Elise WilliamsElise Williams Nov 20, 2026 868 views

Question details

The user wants to add and verify a test domain in Office 365.

How 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.
Before you start

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.

Solution 1Recommended

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.

1
Add the domain

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.

2
Get the verification record

Choose the TXT record verification option and copy the host name and TXT value displayed by Microsoft.

3
Publish the TXT record

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.

4
Verify ownership

Return to Settings > Domains in the Microsoft 365 admin center and select Verify. If verification fails, allow time for DNS propagation and try again.

5
Configure only needed services

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.

Verify a Public Test Domain Using a DNS TXT Record
Private local domains: A DNS record that exists only on a private network is not normally visible to Microsoft's public verification check. Use a publicly resolvable domain or subdomain instead.
Free Microsoft Office alternative

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.

Use a familiar interface to work with office documentsOpen and edit Microsoft Word, Excel, and PowerPoint formatsWork with test documents without setting up an Office 365 custom domainInstall a free, lightweight office suite
microsoft office alternative - wps office

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.