Office 365 Configuration

Add a Domain to Office 365 For Outlook Domain Email

This article will guide you through connecting your domain to Office 365 email system.

Before starting, please ensure that

  • You have an active domain or hosting product with WHC
  • You have an Office365 email account
  • You have verified your domain with Office 365

To get started, access the Zone Editor and follow the instructions below:

Changing the 8 DNS Records to Setup Office 365

There will be a total of 8 DNS settings to change in Zone Editor.

  • 1 MX record for emails
  • 4 CNAME records
  • 1 TXT record for spam filtering
  • 2 SRV records

1 MX record
To add the MX record you will need to

  • Click on Add record
  • Fill in the record as follows


Name = yourdomain.com. (i.e. the domain you wish to have verified with a period at the end)

e.g. if your domain was whc.ca then you would write whc.ca.
TTL= 3600Time to live (TTL) is a mechanism that limits the amount of time in between updates of a computer or network. The number represents time in seconds. Thus, 86400 = 1 day, 14400 = 4 hours, 3600 = 1 hour. There are disadvantages to having the time lapse be too short or two long. Accordingly, it is best to set a TTL to the recommended time.
Type = choose MX
Priority = 0 (i.e as in the number zero)
Record = yourdomain-com.mail.protection.outlook.com

yourdomain.com= the domain your are trying to set up. Please note that you will need to place a hyphen (-) in between your domain name and domain extension.

For example, if whc.ca was the designated web address, then it would be ‘whc-ca.mail.protection.outlook.com’
Click on Add record
4 CNAME Records: Sipdir, Autodiscover, Lyncdiscover, and Msoid
Sipdir
To add the CNAME record you will need to

Click on Add record
2) Fill in the record as follows

Name = sip.yourdomain.com. (yourdomain.com should be replaced by the domain you wish to set up. Please remember that the name must end in a period.)
e.g. if your domain was whc.ca then you would write sip.whc.ca.
TTL = 3600
Type = choose CNAME
Record = sipdir.online.lync.com
Click on Add record
There are 3 more CNAME DNS settings to create. Please, repeat the instructions above but fill the fields in as designated.

Autodiscover
Name = autodiscover.yourdomain.com. (yourdomain.com should be replaced by the domain you wish to set up. Please remember that the name must end in a period.)
e.g. if your domain was whc.ca then you would write autodiscover.whc.ca.
TTL = 3600
Type = choose CNAME
Record = autodiscover.outlook.com
Troubleshoot
If you receive a note saying that there is already an ‘autodiscover’ record (autodiscover.yourdomain.com), then go to ‘all’, find the existing ‘autodiscover’ DNS record, and change it to match the settings above.
Lyncdiscover
Name = lyncdiscover.yourdomain.com. (yourdomain.com should be replaced by the domain you wish to set up. Please remember that the name must end in a period.)
e.g. if your domain was whc.ca then you would write lyncdiscover.whc.ca.
TTL = 3600
Type = choose CNAME
Record = webdir.online.lync.com
Msoid
Name = msoid.yourdomain.com. (yourdomain.com should be replaced by the domain you wish to set up. Please remember that the name must end in a period.)
e.g. if your domain was whc.ca then you would write msoid.whc.ca.
TTL = 3600
Type = choose CNAME
Record = clientconfig.microsoftonline-p.net
1 TXT record for spam filtering
To add the TXT record you will need to

Click on Add record
Fill in the record as follows

Name = yourdomain.com. (yourdomain.com should be replaced by the domain you wish to set up. Please remember that the name must end in a period.)
e.g. if your domain was whc.ca then you would write whc.ca.
TTL = 3600
Type = TXT
Record = v=spf1 include:spf.protection.outlook.com -all
Click on Add record
Troubleshoot
If you receive a note saying that there is already an TXT file with an SPF function (v=spf), then go to ‘all’, find the existing ‘TXT file containing an SPF function, and change it to match the settings above.
2 SRV Records: Sipdir and Sipfed
To add the 2 SRV records you will need to :

Sipdir
Click on Add record
Fill in the record as follows

(The extra fields will automatically appear once SRV is selected as the type)
Name = sip._tls.yourdomain.com. (yourdomain.com should be replaced by the domain you wish to set up. Please remember that the name must end in a period.)
e.g. if your domain was whc.ca then you would write _sip._tls.whc.ca.
TTL = 3600
Type = choose SRV
Priority = 100
Weight = 1
Port = 443
Target = sipdir.online.lync.com
Click on Add record
Sipfed
For Sipfed, please repeat the instructions above but fill the fields in as designated.

Name = _sipfederationtls._tcp.yourdomain.com. (yourdomain.com should be replaced by the domain you wish to set up. Please remember that the name must end in a period.)
e.g. if your domain was whc.ca then you would write _sipfederationtls._tcp.whc.ca.
TTL = 3600
Type = choose SRV
Priority = 100
Weight = 1
Port = 5061
Target = sipfed.online.lync.com
Congratulations! You’ve Made the DNS Changes for Office 365
These DNS changes should take about 15 minutes to an hour to activate, though some systems may require 24 hours for the information to propagate. After 24 hours, contact your provider for more details.

To finalize the process, go back to the Office 365 domain section to verify if all the settings are configured correctly. Once you click verify, a screen should appear that indicates that all records were created successfully.

If there is an issue, Microsoft will prompt you on how to repair it. You can also check the troubleshoot sections of this article located at the end of their respective instructions.

  • You will be brought to a page which contains a TXT record that looks similar to MS=msXXXXXXXX (on the screens you should see the Xs replaced with numbers)
  • Go to the Office 365 verification article and continue the process from step 8