Configuring domain for MDM in Office 365
To be able to use Mobile Device Managemt that is a part of Office 365 you need to first enable it for the domain.
First you have to add purpose to the domain. You can do this by choosing domain in the domain list and then going to domain settings. In the domain setting choose change purpose:
Than you have to choose “Mobile Device Management for Office”:
In the end you have to add CNAME records to you your domain for MSOID to clientconfig.microsoftonline-p.net, enterpriseregistration toenterpriseenrollment.manage.microsoft.com and enterpriseenrollment to enterpriseregistration.windows.net: