Create DNS records at OVH for Office 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.

These are the main records to add. Follow the steps below. (Need more help? Get support.)

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

To learn about webhosting and DNS for websites with Office 365, see Use a public website with Office 365.

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 Office 365, 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 Office 365 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_C3_201752617225

  2. Under Domains, choose the name of the domain that you want edit.

    OVH Select the domain_C3_201769175443

  3. Choose DNS zone.

    OVH select DNS zone_C3_201752617239

  4. Choose Add an entry.

    OVH Add an entry_C3_2017526172337

  5. Choose TXT

    OVH choose TXT entry_C3_2017526172412

  6. In the boxes for the new record, type or copy and paste the values from the following table. To assign a TTL value, select Personalized 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 in Office 365.

    How do I find this?

  7. Choose Confirm.
     

    OVH confirm TXT for verification_C3_2017526172553

  8. 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 Office 365 and request Office 365 to look for the record.

When Office 365 finds the correct TXT record, your domain is verified.

  1. Go to the Domains page.

  2. On the Domains page, choose the domain that you are verifying.

    OVH Select your domain in Office 365_C3_20176917563

  3. On the Setup page, choose Start setup.

    OVH Start Setup in Office 365_C3_201769175638

  4. On the Verify domain page, select Add a TXT record instead, and then choose Next.

    Office 365 Add a TXT record instead_C3_2017526172713

  5. Choose Next, and then choose Verify.

    OVH Verify your domain in Office 365_C3_201769202357

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 Office 365

Follow the steps below.

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

  2. Under Domains, choose the name of the domain that you want to edit.

  3. Choose DNS zone.

  4. Choose Add an entry.

  5. Choose MX.

    OVH MX record type_C3_201752617285

  6. In the boxes for the new record, type or copy and paste the values from the following table. To assign a TTL value, select Personalized 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.

    Record type

    Sub-domain

    TTL

    Priority

    Target

    MX

    (leave blank)

    3600 (seconds)

    10

    For more information about priority, see What is MX priority?

    <domain-key>.mail.protection.outlook.com.

    Note: Get your <domain-key> from your Office 365 portal account.

    How do I find this?

    OVH MX record for mail_C3_201769183841

  7. Choose Next.

    OVH MX record select Next_C3_20176918395

  8. Choose Confirm.

    OVH MX record select Confirm_C3_201769183928

  9. If there are any other MX records, delete them all in the list on the DNS zone page. Select each record and then, in the Actions column, choose the trash-can Delete icon.

    OVH delete MX record_C3_2017526173640

  10. Choose Confirm.

Add the CNAME records that are required for Office 365

Follow the steps below.

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

  2. Under Domains, choose the name of the domain that you want to edit.

  3. Choose DNS zone.

  4. Choose Add an entry.

  5. Choose CNAME.

    OVH add CNAME record type_C3_2017526173716

  6. Create the first CNAME record.

    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, select Personalized from the drop-down list, and then type the value in the text box.

    Record type

    Sub-domain

    Target

    TTL

    CNAME

    autodiscover

    autodiscover.outlook.com.

    3600 seconds

    CNAME

    sip

    sipdir.online.lync.com.

    3600 seconds

    CNAME

    lyncdiscover

    webdir.online.lync.com.

    3600 seconds

    CNAME

    msoid

    clientconfig.microsoftonline-p.net.

    3600 seconds

    CNAME

    enterpriseregistration

    enterpriseregistration.windows.net.

    3600 seconds

    CNAME

    enterpriseenrollment

    enterpriseenrollment.manage.microsoft.com.

    3600 seconds

    OVH CNAME record_C3_20176920622

  7.  

    Choose Next.

    OVH Add CNAME values and select Next_C3_201752910115

    OVH CNAME record select Next_C3_20176920643

  8. Choose Confirm.

  9. Repeat the previous steps to create the other five CNAME records.

    For each record, type or copy and paste the values from the next row of the table above into the boxes for that record.

Add a TXT record for SPF to help prevent email spam

Important: 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 Office 365. Instead, add the required Office 365 values to the current record so that you have a single SPF record that includes both sets of values. Need examples? Check out these details and sample SPF records. To validate your SPF record, you can use one of these SPF validation tools.

Follow the steps below.

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

  2. Under Domains, choose the name of the domain that you want to edit.

  3. Choose DNS zone.

  4. Choose Add an entry.

  5. Choose TXT.

  6. In the boxes for the new record, type or copy and paste the following values.

    Record type

    Sub-domain

    TTL

    TXT Value

    TXT

    (leave blank)

    3600 (seconds)

    v=spf1 include:spf.protection.outlook.com -all

    Note: We recommend copying and pasting this entry, so that all of the spacing stays correct.

    OVH Add TXT record for SPF_C3_2017529102318

  7. Choose Next.

    OVH Add TXT record for SPF and choose Next_C3_2017529102438

  8. Choose Confirm.

    OVH Add TXT record for SPF and Confirm_C3_201752910250

Add the two SRV records that are required for Office 365

Follow the steps below.

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

  2. Under Domains, choose the name of the domain that you want to edit.

  3. Choose DNS zone.

  4. Choose Add an entry.

  5. Choose SRV.

    OVH select SRV record type_C3_2017521125535

  6. Create the first SRV record.

    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, select Personalized from the drop-down list, and then type the value in the text box.

    Record type

    Sub-domain

    Priority

    Weight

    Port

    TTL

    Target

    SRV (Service)

    _sip._tls

    100

    1

    443

    3600 (seconds)

    sipdir.online.lync.com.

    SRV (Service)

    _sipfederationtls._tcp

    100

    1

    5061

    3600 (seconds)

    sipfed.online.lync.com.

    OVH SRV record_C3_201769195042

  7. Choose Next.

    OVH SRV record select Next_C3_20176919516

  8. Choose Confirm.

  9. Repeat the previous steps to create the other SRV record. Type or copy and paste the values from the second row of the table above into the boxes for the second 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.

Expand your skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×