Pages

Thursday, April 25, 2019

Add Custom domain name to Office 365 portal

Use Case:

In my scenario, I have a newly created office 365 portal with .onmicrosoft.com address. all the users in this office 365 portal has .onmicrosoft.com email accounts. I need to change the .onmicrosoft.com domain address to a custom domain name (ex: ABC.com). 


Steps:

Below is the steps to add a custom domain name.
  • Go to the admin center at https://admin.microsoft.com.
  • Go to the Settings > Domains page.
  • Select Add domain.

  • Enter the name of the domain you want to add, then select Next (ex: mycloudpros.ca).
  • Choose how you want to verify that you own the domain. In my case, I choose "Add a TXT record to the domain's DNS records. "
    • If your domain registrar uses Domain Connect, Microsoft will set up your records automatically by having you sign in to your registrar and confirm the connection to Microsoft 365. You'll be returned to the admin center and Microsoft will then automatically verify your domain. Domain Connect registrars integrating with Microsoft 365,
      • 1&1 IONOS
      • EuroDNS
      • Cloudflare
      • GoDaddy
      • WordPress.com
      • Plesk
      • MediaTemple
      • SecureServer or WildWestDomains (GoDaddy resellers using SecureServer DNS hosting)
        • Ex: DomainsPricedRight, DomainRightNow
    • Note: If you have a website that you use with your business, it will keep working where it is. The Domain Connect setup steps don't affect your website.
    • Add a TXT record to the domain's DNS records. 
      • Note: This can take up to 30 minutes to verify after you've added the record.
    • if you can't add TXT record, add a MX record to the domain's DNS records. 
    • Add a text file to the domain's website.
  • If you chose to add DNS records yourself, select Next and you'll see a page with all the TXT record that you need to add to your registrars website to set up your domain. Make a note, because you need to add this TXT record to your domain's DNS records.
  • Go to your domain's registrar > Go to DNS management > Add the TXT record > Save. In my case, I am using Godaddy and it looks like below.
  • Once completed adding TXT record, come back to Office 365 portal and continue the process and Click verify domain.
  • Select the connection options. In my case, I choose "Add your own DNS records".
    • Let Microsoft add you DNS records
    • Add your own DNS records
    • Skip and do this later
  • Select Continue
  • Again, Go back to your domain's registrar and add below DNS records before proceed.
    • Note: if you are migrating your email to office 365, make sure NOT to add MX records this time. MX record could be added as a last task to avoid any email delivery issues. In my this use case, I will add the MX record as well. 
    • Note: If you have existing TXT record for spf, Please make sure to combine them together (ex: v=spf1 include:spf.messagelabs.com include:spf.protection.outlook.com -all ). In my case, I don't have a existing spf and I am going to add the same value as below.
  • Come back to Office 365 portal and verify the DNS records.
  • Select Finish
  • If you want to setup newly configure custom domain as a default domain to the Office365 tenant, you are good to do that too now.
    • Go to O365 admin portal > Settings > Domains > Select newly configure domain > Select set as default.