Connect your DNS records at OVH to Microsoft 365

Check the Domains FAQ if you don't find what you're looking for.

If OVH is your DNS hosting provider, follow the steps in this article to verify your domain and set up DNS records for email, Skype for Business Online, and so on.

After you add these records at OVH, your domain will be set up to work with Microsoft services.

Note

Typically it takes about 15 minutes for DNS changes to take effect. However, it can occasionally take longer for a change you've made to update across the Internet's DNS system. If you're having trouble with mail flow or other issues after adding DNS records, see Troubleshoot issues after changing your domain name or DNS records.

Add a TXT record for verification

Before you use your domain with Microsoft, we have to make sure that you own it. Your ability to log in to your account at your domain registrar and create the DNS record proves to Microsoft that you own the domain.

Note

This record is used only to verify that you own your domain; it doesn't affect anything else. You can delete it later, if you like.

  1. To get started, go to your domains page in OVH by using this link. You'll be prompted to log in.

    OVH login.

  2. On the dashboard landing page, under View all my activity, select the name of the domain that you want edit.

  3. Select DNS zone.

    OVH Select DNS zone.

  4. Select Add an entry.

    OVH Add an entry.

  5. Select TXT

    OVH select TXT entry.

  6. In the boxes for the new record, type or copy and paste the values from the following table. To assign a TTL value, choose Custom from the drop-down list, and then type the value in the text box.

    Record type Sub-domain TTL Value
    TXT (leave blank) 3600 (seconds) MS=msxxxxxxxx
    Note: This is an example. Use your specific Destination or Points to Address value here, from the table. How do I find this?
  7. Select Next.

  8. Select Confirm.

    OVH confirm TXT for verification.

  9. Wait a few minutes before you continue, so that the record you just created can update across the Internet.

Now that you've added the record at your domain registrar's site, you'll go back to Microsoft and request the record. When Microsoft finds the correct TXT record, your domain is verified.

To verify the record in Microsoft 365:

  1. In the admin center, go to the Settings > Domains.

  2. On the Domains page, select the domain that you're verifying, and select Start setup.

    Select Start setup.

  3. Select Continue.

  4. On the Verify domain page, select Verify.

Note

Typically it takes about 15 minutes for DNS changes to take effect. However, it can occasionally take longer for a change you've made to update across the Internet's DNS system. If you're having trouble with mail flow or other issues after adding DNS records, see Troubleshoot issues after changing your domain name or DNS records.

Add an MX record so email for your domain will come to Microsoft

  1. To get started, go to your domains page in OVH by using this link. You'll be prompted to log in.

    OVH login.

  2. On the dashboard landing page, under View all my activity, select the name of the domain that you want edit.

  3. Select DNS zone.

    OVH Select DNS zone.

  4. Select Add an entry.

    OVH Add an entry.

  5. Select MX.

    OVH MX record type.

  6. In the boxes for the new record, type or copy and paste the values from the following table. To assign a TTL value, choose Custom from the drop-down list, and then type the value in the text box.

    Note

    By default OVH uses relative notation for the target, which adds the domain name to the end of the target record. To use absolute notation instead, add a dot to the target record as shown in the table below.

    Sub-domain TTL Priority Target
    (leave blank) 3600 (seconds) 0
    For more information about priority, see What is MX priority?
    <domain-key>.mail.protection.outlook.com.
    Note: Get your <domain-key> from your Microsoft account. How do I find this?

    OVH MX record for mail.

  7. Select Next.

    OVH MX record select Next.

  8. Select Confirm.

    OVH MX record select Confirm.

  9. Delete any other MX records in the list on the DNS zone page. Select each record and, in the Actions column, select the trash-can Delete icon.

    OVH delete MX record.

  10. Select Confirm.

Add the CNAME record required for Microsoft

  1. To get started, go to your domains page in OVH by using this link. You'll be prompted to log in.

    OVH login.

  2. On the dashboard landing page, under View all my activity, select the name of the domain that you want edit.

  3. Select DNS zone.

    OVH Select DNS zone.

  4. Select Add an entry.

    OVH Add an entry.

  5. Select CNAME.

    OVH Add CNAME record type.

  6. In the boxes for the new record, type or copy and paste the values from the first row of the following table. To assign a TTL value, choose Custom from the drop-down list, and then type the value in the text box.

    Sub-domain TTL Target
    autodiscover 3600 (seconds) autodiscover.outlook.com.

    OVH CNAME record.

  7. Select Next.

    OVH Add CNAME values and select Next.

  8. Select Confirm.

Add a TXT record for SPF to help prevent email spam

Important

You cannot have more than one TXT record for SPF for a domain. If your domain has more than one SPF record, you'll get email errors, as well as delivery and spam classification issues. If you already have an SPF record for your domain, don't create a new one for Microsoft. Instead, add the required Microsoft values to the current record so that you have a single SPF record that includes both sets of values.

  1. To get started, go to your domains page in OVH by using this link. You'll be prompted to log in.

    OVH login.

  2. On the dashboard landing page, under View all my activity, select the name of the domain that you want edit.

  3. Select DNS zone.

    OVH Select DNS zone.

  4. Select Add an entry.

    OVH Add an entry.

  5. Select TXT.

  6. In the boxes for the new record, type or copy and paste the following values. To assign a TTL value, choose Custom from the drop-down list, and then type the value in the text box.

    Sub-domain TTL Value
    (leave blank) 3600 (seconds) v=spf1 include:spf.protection.outlook.com -all <br/Note: We recommend copying and pasting this entry, so that all of the spacing stays correct.

    OVH Add TXT record for SPF.

  7. Select Next.

    OVH Add TXT record for SPF and select Next.

  8. Select Confirm.

    OVH Add TXT record for SPF and Confirm.

Advanced option: Skype for Business

Only select this option if your organization uses Skype for Business for online communication services like chat, conference calls, and video calls, in addition to Microsoft Teams. Skype needs 4 records: 2 SRV records for user-to-user communication, and 2 CNAME records to sign-in and connect users to the service.

Add the two required SRV records

  1. To get started, go to your domains page in OVH by using this link. You'll be prompted to log in.

    OVH login.

  2. On the dashboard landing page, under View all my activity, select the name of the domain that you want edit.

  3. Select DNS zone.

    OVH Select DNS zone.

  4. Select Add an entry.

    OVH Add an entry.

  5. Select SRV.

  6. In the boxes for the new record, type or copy and paste the following values. To assign a TTL value, choose Custom from the drop-down list, and then type the value in the text box.

    Sub-domain TTL (Seconds) Priority Weight Port Target
    _sip._tls 3600 (s.) 100 1 443 sipdir.online.lync.com. This value MUST end with a period (.)>
    Note: We recommend copying and pasting this entry, so that all of the spacing stays correct.
    _sipfederationtls._tcp 3600 (s.) 100 1 5061 sipfed.online.lync.com. This value MUST end with a period (.)
    Note: We recommend copying and pasting this entry, so that all of the spacing stays correct.
  7. To add the other SRV record, select Add another record, create a record using the values from the next row in the table, and then select Create records.

Note

Typically it takes about 15 minutes for DNS changes to take effect. However, it can occasionally take longer for a change you've made to update across the Internet's DNS system. If you're having trouble with mail flow or other issues after adding DNS records, see Find and fix issues after adding your domain or DNS records.

Add the two required CNAME records for Skype for Business

  1. To get started, go to your domains page in OVH by using this link. You'll be prompted to log in.

    OVH login.

  2. On the dashboard landing page, under View all my activity, select the name of the domain that you want edit.

  3. Select DNS zone.

    OVH Select DNS zone.

  4. Select Add an entry.

    OVH Add an entry.

  5. Select CNAME.

    OVH Add CNAME record type.

  6. In the boxes for the new record, type or copy and paste the values from the first row of the following table. To assign a TTL value, choose Custom from the drop-down list, and then type the value in the text box.

    Sub-domain TTL Target
    sip 3600 (s.) sipdir.online.lync.com.
    This value MUST end with a period (.)
    lyncdiscover 3600 (s.) webdir.online.lync.com.
    This value MUST end with a period (.)
  7. Select Next.

    OVH Add CNAME values and select Next.

  8. Select Confirm.

  9. Add the other CNAME record.

Note

Typically it takes about 15 minutes for DNS changes to take effect. However, it can occasionally take longer for a change you've made to update across the Internet's DNS system. If you're having trouble with mail flow or other issues after adding DNS records, see Troubleshoot issues after changing your domain name or DNS records.

Advanced option: Intune and Mobile Device Management for Microsoft 365

This service helps you secure and remotely manage mobile devices that connect to your domain. Mobile Device Management needs two CNAME records so that users can enroll devices to the service.

Add the two required CNAME records for Mobile Device Management

  1. To get started, go to your domains page in OVH by using this link. You'll be prompted to log in.

    OVH login.

  2. On the dashboard landing page, under View all my activity, select the name of the domain that you want edit.

  3. Select DNS zone.

    OVH Select DNS zone.

  4. Select Add an entry.

    OVH Add an entry.

  5. Select CNAME.

    OVH Add CNAME record type.

  6. In the boxes for the new record, type or copy and paste the values from the first row of the following table. To assign a TTL value, choose Custom from the drop-down list, and then type the value in the text box.

    Sub-domain TTL Target
    enterpriseregistration
    3600 (s.) enterpriseregistration.windows.net.
    This value MUST end with a period (.)
    enterpriseenrollment 3600 (s.) enterpriseenrollment-s.manage.microsoft.com.
    This value MUST end with a period (.)
  7. Select Next.

    OVH Add CNAME values and select Next.

  8. Select Confirm.

  9. Add the other CNAME record.

Note

Typically it takes about 15 minutes for DNS changes to take effect. However, it can occasionally take longer for a change you've made to update across the Internet's DNS system. If you're having trouble with mail flow or other issues after adding DNS records, see Troubleshoot issues after changing your domain name or DNS records.