A cloud-based identity and access management service for securing user authentication and resource access
For Microsoft 365 and Microsoft Entra ID, the primary and recommended DNS verification method is a TXT record. Other record types (such as MX or CNAME) may be used in specific services, but TXT is the standard for proving domain ownership.
Common verification methods
- TXT record (primary method)
- Microsoft 365 / Entra ID provides a TXT value (for example, starting with
MS=) that must be added at the domain’s DNS host. - This TXT record is used only to verify ownership and does not affect other services.
- Typical steps:
- In the Microsoft 365 admin center, go to Settings > Domains.
- Add or select the domain and choose Start setup.
- Copy the “Destination” or “Points to address” value.
- At the DNS host, create a TXT record at the root (often host name
@or blank, depending on the DNS tool) with that value. - Wait ~15 minutes, then return to the admin center and select Verify.
- MX record (alternate method in some flows)
- In some scenarios, Microsoft may allow verification via MX record instead of TXT.
- The MX record is also provided by Microsoft and must be added exactly as given.
- Windows-based DNS
- For on-premises Windows DNS, the same TXT-based verification is used:
- In DNS Manager, create a TXT record at the zone root.
- Ensure the host name is blank if the UI would otherwise append the parent domain incorrectly.
Best practices and troubleshooting if verification is slow or failing
- Confirm the TXT value is exact
- Ensure the full value from Microsoft is copied, including the
MS=prefix where present. - Any missing characters, extra spaces, or truncation will cause verification to fail.
- Ensure the record is actually saved and published
- Some DNS providers require an extra step (such as “Save zone” or “Apply changes”) after adding the record.
- If the zone file is not saved, Microsoft 365 cannot see the record.
- Check DNS propagation and authoritative DNS
- DNS changes typically take about 15 minutes but can take longer.
- Use an authoritative DNS lookup tool to confirm the record exists:
- Query the TXT record for the domain using an authoritative lookup.
- If the expected TXT value is not returned, the record is either missing, misconfigured, or not yet published.
- For domains whose nameservers point to Microsoft 365 (for example,
ns1.bdm.microsoftonline.cometc.), verification TXT records must be created in Microsoft 365 DNS, not only at the registrar. Azure and other Microsoft services validate against the authoritative DNS zone.
- Verify the correct host name
- For root-domain verification, the TXT record is usually created at the zone root:
- Host name often
@or blank, depending on DNS UI. - Avoid entering the full domain name in the host field if the tool already appends the zone name.
- Host name often
- Wait an appropriate amount of time
- Although 15 minutes is typical, some DNS hosts or TTL settings can cause delays of up to a few hours.
- If verification fails immediately, wait and retry later before changing the record.
- Use the Microsoft 365 domains troubleshooter
- In Microsoft 365 admin center:
- Go to Setup > Domains.
- Check the Status column and use “Check health” to see any DNS issues.
- The troubleshooter will list missing or incorrect records and the exact values required.
- Use domain-specific instructions
- When adding a domain, use the “See instructions for performing this step with” drop-down and choose “General instructions” or a specific DNS host to ensure the correct record format.
Common mistakes that cause verification failures
- Incorrect TXT value
- Omitting the
MS=prefix. - Typographical errors or extra characters.
- Copying only part of the value.
- Wrong DNS zone or provider
- Adding the TXT record at the registrar while the domain’s nameservers point elsewhere (for example, to Microsoft 365 or another DNS host).
- Adding the record in a subdomain zone instead of the main domain.
- Record not saved or not applied
- Failing to publish or save the zone after adding the record.
- Wrong host name
- Using
@when the DNS tool expects a blank host name, or vice versa, resulting in a TXT record at the wrong FQDN. - Creating the TXT record under a subdomain (for example,
verify.contoso.com) when Microsoft expects it atcontoso.com.
- Conflicting or multiple verification attempts
- Changing the TXT value before Microsoft has completed verification.
- Using outdated instructions or values from a previous verification attempt.
- Domain already in another tenant
- Microsoft Entra ID does not allow the same domain to be verified in more than one tenant.
- If the domain is already verified in another tenant, it must be removed from that tenant before being added again.
Domain hygiene considerations
- Use a reputable registrar and keep domain registration current.
- Regularly review TXT records for accuracy and tampering, especially after domain expiry or transfer.
- If a domain is intentionally expired or transferred, remove it from the Microsoft Entra tenant first.
- A domain cannot be verified in more than one Microsoft Entra tenant at the same time.
If verification continues to fail after confirming the TXT record via authoritative lookup and waiting for propagation, contact Microsoft 365 or Office 365 Support for tenant-specific investigation.
References:
- Connect your DNS records at Network Solutions to Microsoft 365
- Find and fix issues after adding your domain or DNS records
- Connect your DNS records at web.com to Microsoft 365
- Create DNS records for Microsoft using Windows-based DNS
- Manage custom domain names in your Microsoft Entra ID
- "Sorry, we can't find the record you created" error message when you try to verify a domain in Office 365
- Connect your DNS records at IONOS to Microsoft 365