Verify your domain by using a TXT record or an MX record?

This topic provides online help content for cloud services, such as Windows Intune and Office 365, which rely on Microsoft Azure Active Directory for identity and directory services.

To verify your domain in your Microsoft Azure AD tenant, you create a DNS record at your DNS hosting provider, and then Azure AD uses that record to confirm that you own the domain. The DNS record you create can be a TXT record or an MX record. Which should you choose?

If your DNS hosting provider allows you create TXT records, we recommend you use a TXT record for verification. Why? TXT records are straightforward to create and don’t introduce the possibility of interfering with email delivery if an incorrect value is accidentally entered.

If your DNS hosting provider doesn’t allow users to create their own TXT records, go ahead and create an MX record for verification instead. If the provided steps are carefully followed, your email delivery won’t be affected.