Create DNS records at any DNS hosting provider for Office 365
To set the domain in office 365 you need to create the records for domain hosting in office 365.
When you set up the Domain records yourself, these are the records to add. Note that your verification record and MX record are unique to your domain. To set them up, you'll need to get and use a specific "token" value for your domain. The steps below explain how to do that.
Following records need to update-
- Add a TXT or MX record for verification
- Add MX record to route email
- Add CNAME records
- Add a TXT record for SPF to help prevent email spam
- Add two SRV records
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.
Add a TXT or MX record for verification
Note:- You will create only one or the other of these records. TXT is the preferred record type, but some DNS hosting providers don't support it, in which case you can create an MX record instead.
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.
• If you create a TXT record, use these values:
Record Type Alias or Host Name Value TTL TXT @ MS=ms XXXXXXXX 3600
• If you create an MX record, use these values:
Record Type Alias or Host Name Value Priority TTL TXT @ MS=ms XXXXXXXX 0 3600
When Office 365 finds the correct TXT record, your domain is verified.
- In the admin centre, go to the Settings > Domains page.
- On the Domains page, select the domain that you are verifying.
- On the Setup page, select Start setup.
- On the Verify domain page, select Verify.
Add MX record to route email
Add an MX record so email for your domain will come to Office 365. When you update your domain's MX record, all new email for anyone who uses your domain will now come to Microsoft office 365. Any email you already have will stay at your current email host, unless you decide to migrate email and contacts to Office 365 to Office 365.
Record Type Host Name Points to address: Priority TTL MX @ *domain name-com*.mail.protection.outlook.com 0 3600
Add CNAME records
Record Type Host Points to TTL CNAME (Alias) autodiscover autodiscover.outlook.com 3600 CNAME (Alias) lyncdiscover webdir.online.lync.com 3600 CNAME (Alias) sip sipdir.online.lync.com 3600 CNAME (Alias) enterpriseregistration enterpriseregistration.windows.net 3600 CNAME (Alias) enterpriseenrollment enterpriseenrollment.manage.microsoft.com 3600
Add a TXT record for SPF to help prevent email spam
Record Type Alias or Host Name Value TTL TXT @ v=spf1 include:spf.protection.outlook.com -all 3600
SPF is designed to help prevent spoofing, but there are spoofing techniques that SPF cannot protect against. To protect against these, once you have set up SPF, you should also configure DKIM and DMARC for Office 365. To get support, contact us Use DKIM to validate outbound email sent from your domain in Office 365. Next, see Use DMARC to validate email in Office 365.
Add SRV records
On your DNS host's website, you'll create two new SRV records, typically one at a time. That is, after you add the first SRV record at the website, choose to create another SRV record.
Record Name Target Protocol Service Priority Weight Port TTL Type SRV @ sipdir.online.lync.com _tls _sip 100 1 443 3600 SRV @ sipfed.online.lync.com _tcp _sipfederationtls 100 1 5061 3600
For Service and Protocol: If your DNS host doesn't provide these fields for SRV records, you must specify the Service and Protocol values as the record's Name value. (Note: Depending on your DNS host, the Name field might be called something else, like: Host, Hostname, or Subdomain.) To set up the combined value, you create a single string, separating the values with a dot. For example: Name: _sip._tls (_sip._tls.domain name and _sipfederationtls._tcp.domain name)