Use SharePoint Online on a custom domain together with other services
In Microsoft Office 365 for enterprises, you can use your custom domain with a SharePoint Online public website, and also use the domain with Exchange Online and Lync Online services if you set up your domain by following these steps.
If your domain name is, for example, fourthcoffee.com, this setup will let you use email@example.com email addresses on Office 365 and have a www.fourthcoffee.com SharePoint Online public website.
Set up your domain with Exchange Online, Lync Online, or both
Set up your domain with SharePoint Online
Step 1. Set up your domain with Exchange Online, Lync Online, or both
Before you set up your domain to work with your SharePoint Online public website, set up the domain in Office 365 with Exchange Online, Lync Online, or both services.
Add your domain to Office 365. Use the Add a domain wizard in Office 365 to add and verify your domain name. When you’re prompted to choose the services you want to use with the domain, select Exchange Online, Lync Online, or both. Don’t choose SharePoint Online at this point. You’ll come back and add it later.
Create DNS records for the services. On your DNS hosting provider’s website, Create DNS records for Office 365. The Add a domain wizard shows you the DNS records that you have to create for your domain to work with the Office 365 services that you selected.
After your changes have propagated across the DNS system, you’ll be able to use the Office 365 services you choose. This typically takes about 15 minutes, but can take up to 72 hours. Then, if you set up Exchange Online, for example, you can use your domain with Office 365 email addresses. You don’t, however, need to wait before you complete the next step, setting up SharePoint Online.
Step 2. Set up your domain with SharePoint Online
Before you complete the following steps, be sure to customize the look and feel of the public website for your SharePoint Online account so the site is set up the way you want it to be.
Go through the Add a domain wizard again, but this time, add a subdomain to Office 365 with the format label.contoso.com, where contoso.com is the custom domain name you added earlier. Replace label with the value that completes the website address for the site that you want to host on SharePoint Online.
For example, if your domain name is fourthcoffee.com, you could set label to be www so your website would be located at http://www.fourthcoffee.com.
At the step in the wizard where you’re prompted to choose domain services, select only SharePoint Online.
On the last page of the wizard, click SharePoint Online Administration Center.
On the SharePoint Online Administration Center, select the check box next to your public website and, on the ribbon, click Website Domains.
In the Rename your website dialog box, in the New URL drop-down list, select the domain name you just added; for example, www.fourthcoffee.com.
On the ribbon, click DNS Information.
In the DNS Information dialog box, write down or copy the target address. You’ll use this information to create a DNS record that points people to your website on Office 365.
Finally, point your domain’s URL to your site on SharePoint Online. To do this, you create a DNS record at your DNS hosting provider that includes the target address that you just copied. Create the record by following these steps.
At your DNS hosting provider’s website, sign in to your account.
In the same area that you created the DNS records for your other Office 365 services, create a CNAME record by using the values in the following table.
Hostname Points to address Time to live (TTL)
In the table:
label is the subdomain that you added. The subdomain might be www.fourthcoffee.com.
name.sharepoint.com is the address you copied earlier.
After you create the CNAME record and it updates through the DNS system, traffic for your website (for example, http://www.fourthcoffee.com) will be directed to the public website that you customized on SharePoint Online.
Typically it takes about 15 minutes for your changes to take effect. But it can take up to 72 hours for the record that you created to update through the DNS system.
The steps here help make sure users can see your website when they type, for example, www.contoso.com. If you also want them to see your site when they type just the domain, contoso.com, contact your DNS service provider and ask if they have a URL redirection service to direct traffic from contoso.com to www.contoso.com. Most providers offer URL redirection, and you can check their documentation to learn how to set it up.