How to setup DNS record for the office 365 in cPanel?

First of all, you need to collect your DNS record for your domain from Office 365. Once you have these DNS records, you can easily add them to your cPanel account. 

Verify Domain with TXT record at Office 365

  1. Log in to your Office 365 account.

  2. Go to manage your organization >> Domains >> Manage domain for your website and email.

  3. At the manage domains page, find your domain and click on the start setup action button.

  4. At the domain verify page, select Add a TXT record instead option from the dropdown.

  5. Copy the domain's TXT record that should look like MS=msXXXXXXXX.

  6. Add the same TXT record to your cPanel DNS. Please refer to how to add TXT record in cPanel?

  7. Open your office 365 account and verify your domain. You can do it by clicking on the Done, verify now button inside your Office 365 account.

Locate MX record in your Office 365 account

  1. Once the domain is verified, log in to your Office 365 account and click on the update DNS record for yourdomain.com.

  2. Here, you will find all the DNS records for your domain. You are required to add these records to your DNS panel.

How to add DNS records to your cPanel

After having all the DNS records of Office 365 for your domain, you can log in to your cPanel and add the required DNS record. Here, we have used demovpstest.com as a testing domain.

  1. Login to your cPanel account.

  2. Inside Domains, click on Zone editor.

  3. Enter the MX record you received from the Office 365 Panel. It should look like below. How to add an MX record in cPanel?

    Domain Name TTL Type of Record Record Data
    demovpstest.com 300 MX

     demovpstest.com.mail.protection.

    outlook.com.

  4. Add the TXT record. How to manage TXT records in cPanel?

    Domain Name TTL Type of Record Record Data

    demovpstest.com.mail.protection.

    outlook.com.

    3600 TXT MS=ms000000

    demovpstest.com.mail.protection.

    outlook.com.

    3600 TXT “v=spf1 include:spf.protection.outlook.com -all”
  5. Add your CNAME record. How to manage CNAME records in cPanel?

    Domain Name TTL Type of Record Record Data
    autodiscover.demovpstest.com. 3600 CNAME autodiscover.outlook.com
  6. Add SRV record for your domain.

  7. After successfully adding all the DNS records, you will need to change Email routing to the Remote mail exchanger for your domain in cPanel.

Change Email Routing

  1. Inside cPanel, click on Email Routing. 

  2. Select Remote Mail Exchanger and click on the change button. 

Related Articles

How to enable SSH (shell access) for the existing cPanel account?

Please refer to the following steps to enable SSH access for the existing cPanel account....

How to Publish Your Website from RapidWeaver?

RapidWeaver is a web-designing application for Mac OS. You can easily publish your website using...

How to enable/disable mod security in cPanel?

Disabling ModSecurity on your domains loses the extra layer of security protection that the...

How to install Moodle using Softaculous in cPanel?

You need to have PHP extension fileinfo enabled for your domain and PHP version equal to or...

How to configure Google G Suite MX Records in a cPanel Hosting Account?

Please refer to the following steps to configure Google G Suite MX Records in a cPanel. Login...

  • 0 Users Found This Useful

Was this answer helpful?