Add your domain to Office 365

If your organization already has a custom domain name, as a global administrator, you can add it to Office 365 and use it with email and other services. For example, you can switch email from another provider so email for your domain arrives in Office 365.

Notes    If you're planning a more complex setup for domains, such as a pilot with a shared domain or a hybrid deployment, do the following to get started.

  1. Sign in to Office 365 with your work or school account.

  2. Go to the Office 365 admin center.

  3. Choose Setup > Advanced setup.

Watch the video

In this article

Add a domain that you’re already using for email, switching the email to Office 365 and leaving your public website at your DNS hosting provider

  1. Sign in to Office 365 with your work or school account.

  2. Go to the Manage domains page.

  3. On the Manage domains page, choose Add domain.

  4. Verify that you own the domain by creating a record at your DNS hosting provider or domain registrar.

  5. Create the users with email addresses on this domain.

  6. In the “Set domain purpose” step of the wizard, select Exchange Online. Also select Lync Online if you’re planning to use it.

  7. The next wizard page shows you the three DNS records you need to add for Exchange Online:

    • An MX record to route mail to Office 365. As soon as you change this, email stops going to your old email server, and comes to Office 365 instead.

    • A CNAME Autodiscover record so that email clients like Outlook can automatically discover the Office 365 server.

    • A TXT record to help prevent spam.

    If you selected Lync Online, the DNS records for Lync Online are also listed:

    • A CNAME record for Autodiscover from Lync mobile clients.

    • A CNAME record for automatic sign-in.

    • An SRV record to let users use Lync with people outside your organization.

    • An SRV record for connecting to the internet outside your organization.

    You’ll also need to set up one additional CNAME record for Office 365.

    Use the step-by-step instructions for setting up these records at your DNS hosting provider.

  8. If this domain is your primary domain, change your default Office 365 domain to the custom domain you just added. On the Manage domains page, choose the domain, and then on the right, choose Set as default.

Top of Section
Top of Article

Add a domain for Exchange Online only

  1. Sign in to Office 365 with your work or school account.

  2. Go to the Manage domains page.

  3. On the Manage domains page, choose Add domain.

  4. Verify that you own the domain by creating a record at your DNS hosting provider or domain registrar.

  5. Create the users with email addresses on this domain.

  6. In the “Set domain purpose” step of the wizard, select Exchange Online.

  7. The next wizard page shows you the three DNS records you need to add for Exchange Online:

    • An MX record to route mail to Office 365. As soon as this change takes place, email will stop going to your old email server, and will come in to Office 365 instead.

    • A CNAME record so that email clients like Outlook can automatically discover the Exchange Online server.

    • A TXT record to help prevent spam.

    In addition, there's one more CNAME record to set up that is used by Office 365.

  8. If this domain is your primary domain, change your default Office 365 domain to the custom domain you just added. On the Manage domains page, choose the domain, and then on the right, choose Set as default.

Top of Section
Top of Article

Add a domain that you just bought (no email or website yet)

  1. Sign in to Office 365 with your work or school account.

  2. Go to the Manage domains page.

  3. On the Manage domains page, choose Add domain.

  4. Verify that you own the domain by creating a record at your DNS hosting provider or domain registrar.

  5. Create the users with email addresses on this domain.

  6. In the “Set domain purpose” step of the wizard, select the services you plan to use.

  7. The next wizard page shows you the three DNS records you need to add for Office 365:

    • An MX record to route mail to Office 365.

    • A CNAME record so that email clients like Outlook can automatically discover the Office 365 server.

    • A TXT record to help prevent spam.

    If you selected Lync Online, the DNS records for Lync Online will also be listed:

    • A CNAME record for Autodiscover from Lync mobile clients.

    • A CNAME record for automatic sign-in.

    • An SRV record to let users use Lync with people outside your organization.

    • An SRV record to enable connecting to the internet outside your organization.

    You’ll also need to set up one additional CNAME record for Office 365.

    If you want to use your new domain for your Office 365 public website URL as well as with email and Lync, there are a few more steps. Check out Use SharePoint Online on a custom domain together with other services to get it all working together.

    If you want to use Office 365 for your public website using this new domain name, but don’t plan on using Office 365 for email and Lync, see Use a custom domain name for your Office 365 public website address.

  8. If this domain is your primary domain, change your default Office 365 domain to the custom domain you just added. On the Manage domains page, choose the domain, and then on the right, choose Set as default.

Top of Section
Top of Article

Tips

  • If your organization is also signed up for Windows Azure, CRM, or you've added your domain to any of our online services, you should use the same user ID and domain to sign in, and for access to all your services.

  • Setting up all services with your domain in Office 365? Read the following quick start info to help you cover all the steps: Set up Office 365 for business

  • If you don’t have a custom domain, you can learn how to buy one from a domain name registrar. If you already have one, learn how to locate your domain registrar and DNS hosting provider online. You’ll need those sign-in credentials when you’re setting up your domain.

  • You can add a custom domain using any name that’s available at your domain registrar. It doesn’t have to match the first part of your onmicrosoft.com domain. For example, you could use fabrikam.onmicrosoft.com, and add a custom domain of fabrikam_nw.com.

  • If you own multiple domain names and want them to point to the same public website, add a new CNAME record for each domain name at your DNS hosting provider. These additional domains don’t have to be added to Office 365 unless you want to have email addresses on them.

  • After you add your domain to Office 365, you can change the default domain name that Office 365 uses for new email addresses.

  • Make sure that the version of Office 365 that you signed up for includes the domain features that your organization needs.

Troubleshooting

  • There are some domains you can’t add to your Office 365 subscription:

    • If you’re currently using a custom domain with another Microsoft cloud service, you can’t add the same domain to Office 365.

    • You can’t add the same domain to different Office 365 subscriptions. For example, if you add fabrikam.com to Office 365, you can't create another Office 365 subscription and add fabrikam.com to it.

  • To check the status of your domain, on the Manage domains page in Office 365, look in the Status column. If there are possible service issues listed, choose Fix issues. If setup is not complete, choose Complete setup.

Add a domain by using PowerShell

Use Windows PowerShell and run the cmdlet for adding a domain.

Top of Article

Still need help?

Get help from the Office 365 community forums Admins: Sign in and create a service request Admins: Call Support

Top of Article

Applies To: Office 365 End User, Office 365 Admin, Office 365 Small Business Admin



Was this information helpful?

Yes No

How can we improve it?

255 characters remaining

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!

Support resources

Change language