Add records to set up your SharePoint Online Public Website for Windows-based DNS

Note: The SharePoint Online Public Website information in this article applies only if your organization purchased Office 365 prior to March 9, 2015. If you purchased Office 365 after March 9, 2015, use an Office 365 website hosting partner.

Before you rename the site to use your custom domain name, make sure you've finished designing the website (in Office 365) and that you're ready for everyone to see it. Then when you're ready to use your custom domain for the address, you create (at the DNS host for your domain) a CNAME record to point to your customized website.

Ready to create that CNAME record? Follow the steps in this article. (Need more help? Get support.)

Add the CNAME record to use your custom domain

First, review one of the two following linked articles (depending on the Office 365 subscription you have) for an overview of the process.

Then, when you’re ready to create the required CNAME record, use the steps in the following table.



Gather information from SharePoint Online.

  1. If you’re on the Domains page in Office 365, go to the SharePoint admin center:

    1. Choose Domains, choose the domain name, and then choose Edit domain intent.

    2. Choose SharePoint Online.

    3. Choose Save.

    4. Choose SharePoint admin center.

  2. From the SharePoint admin center:

    1. Choose Manage site collections, and then select the check box next to your public website.

    2. On the ribbon, choose DNS Information.

  3. Write down or copy the target address so you’ll have it ready for the next step, Add a CNAME record.

Add a CNAME record.

  1. In the New Resource Record dialog box, enter the following:

    • Host Name: Use the name of your custom domain; for example,

    • Type: Choose CNAME.

    • Address: Use where name is the name of your custom domain; for example,

  2. Choose OK.

Note:  Typically it takes about 15 minutes for DNS changes to take effect. However, it can occasionally take longer for a change you've made to update across the Internet's DNS system. If you’re having trouble with mail flow or other issues after adding DNS records, see Troubleshoot issues after changing your domain name or DNS records.

Back to top

Find your DNS records in Windows-based DNS

If you need help finding the place where you work with DNS records, follow the steps below.


Go to the page that has the DNS records for your domain.

  1. If you're working in Windows Server 2008, go to Start > Run.

    If you're working in Windows Server 2012, press the Windows key and r.

  2. Type dnsmgmnt.msc, and then choose OK.

  3. In DNS Manager, expand <DNS server name> > Forward Lookup Zones.

  4. Choose your domain.

You’re now ready to create the DNS records.

Back to top

Still need help?

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

Back to top

Share Facebook Facebook Twitter Twitter Email Email

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!