To setup Office365 with your domain you need to create below DNS records :
# First you need to validate domain with TXT or MX record :
If you create a TXT record, use these values:
Record Type | Alias or Host Name | Value | TTL |
TXT | Do one of the following: Type @ or leave the field empty or type your domain name. | ||
**Note:**Different DNS hosts have different requirements for this field. | MS=ms XXXXXXXX Note: This is an example. Use your specific Destination or Points to Address value here, from the table in Office 365. |
Set this value to 1 hour or to the equivalent in minutes ( 60 ), seconds ( 3600 ), etc. |
If you create an MX record, use these values:
Record Type | Alias or Host Name | Value | Priority | TTL |
MX | Type either @ or your domain name. | MS=ms XXXXXXXX **Note:**This is an example. Use your specific Destination or Points to Address value here, from the table in Office 365. |
For Priority, to avoid conflicts with the MX record used for mail flow, use a lower priority than the priority for any existing MX records. | Set this value to 1 hour or to the equivalent in minutes ( 60 ), seconds ( 3600 ), etc. |
Once you have validated domain we need to below DNS records :
# Add MX record to route email to Office365
Setup MX record like below
<MX token>.mail.protection.outlook.com
where <MX token> is a value like MSxxxxxxx.
# Add three CNAME records
Record Type | Host | Points to | TTL |
CNAME (Alias) | autodiscover | autodiscover.outlook.com | 1 hour |
CNAME (Alias) | lyncdiscover | webdir.online.lync.com | 1 hour |
CNAME (Alias) | sip | sipdir.online.lync.com | 1 hour |
# Add two CNAME records for Mobile Device Management (MDM) for Office 365
Record Type | Host | Points to | TTL |
CNAME (Alias) | enterpriseregistration | enterpriseregistration.windows.net | 1 hour |
CNAME (Alias) | enterpriseenrollment | enterpriseenrollment-s.manage.microsoft.com | 1 hour |
# Add a TXT record for SPF to help prevent email spam
Record Type | Host | TXT Value | TTL |
TXT (Text) | @ | v=spf1 include:spf.protection.outlook.com -all | 1 hour |
# Add two SRV records
Record Type | Name | Target | Protocol | Service | Priority | Weight | Port | TTL |
SRV (Service) | @ (Or leave blank, if @ is not allowed) |
sipdir.online.lync.com | _tls | _sip | 100 | 1 | 443 | 1 hour |
SRV (Service) | @ (Or leave blank, if @ is not allowed) |
sipfed.online.lync.com | _tcp | _sipfederationtls | 100 | 1 | 5061 | 1 hour |
Please feel free contact us at [email protected] if you require any assistance to setup office365.