Create DNS records for Office 365 using Windows-based DNS

If you host your own DNS records using Windows-based DNS, here’s how to set up your DNS records for Office 365:

If you’ve closed Office 365, here’s how to go to the page that shows which records to add.

 Note    Typically it takes about 15 minutes for DNS changes to take effect. However, it can take up to 72 hours for a changed record to propagate through the DNS system. If you’re having trouble adding DNS records, see Troubleshoot issues after changing your domain name or updating DNS records.

Find your DNS records in Windows-based DNS

Use the steps in the following table to get to the right spot on your Windows server to edit your DNS records.

Task Action

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

  1. In Windows Server 2008, go to Start > Run.
    In Windows Server 2012, press the Windows key and r.
  2. Type dnsmgmnt.msc, and then click OK.
  3. In DNS Manager, expand <DNS server name> > Forward Lookup Zones.
  4. Select your domain. You’re now ready to create the DNS records.

Add records to configure your domain for Exchange Online

To add the three records that are required for email, use the steps in the following table.

Task Action

Add a mail exchanger record (MX record).

  1. On the DNS Manager page for your domain, go to Action > Mail Exchanger (MX).

To find this page for your domain, see Find your DNS records in Windows-based DNS.

  1. In the New Resource Record dialog box, copy the values from the MX row in the Exchange Online section of the Office 365 Add DNS records page:
  • Host Name: use the Host name value.
  • Address: use the Points to address value.
  • Pref: use 0. For more information about priority, see What is MX priority?
  1. Click Save Changes.

Remove any obsolete MX records.

  1. If you have an old MX record for this domain that routes email somewhere else, select the check box next to the old record, and then click Delete.
  2. Click OK.

Add a CNAME record.

  1. On the DNS Manager page for your domain, go to Action > CNAME (CNAME).
  2. In the New Resource Record dialog box, copy the values from the CNAME row in the Exchange Online section of the Office 365 Add DNS records page:
  • Host Name: Use the Host name value.
  • Type: select CNAME.
  • Address: Use the Points to address value. This value must end with a period (.).
  1. Click OK.

Add a TXT record.

  1. On the DNS Manager page for your domain, go to Action > Text (TXT).
  2. In the New Resource Record dialog box, copy the values from the TXT row in the Exchange Online section of the Office 365 Add DNS records page into an empty record:
  • Host type: use the TXT Name value.
  • Record Type: select TXT.
  • Address: use the TXT value value. This value must end with a period (.).
  1. Click OK.

Add records to configure your domain for Lync Online

To add the four records that are required for Lync Online, use the steps in the following table.

Task Action

Add the first CNAME record for Lync Online.

  1. On the DNS Manager page for your domain, go to Action > New CNAME (CNAME).

To find this page for your domain, see Find your DNS records in Windows-based DNS.

  1. In the New Resource Record dialog box, copy the values from the first CNAME row in the Lync Online section of the Office 365 Domain settings page into an empty row.
  • Host Name: Use the Host name value.
  • Type: select CNAME.
  • Address: Use the Points to address value. This value must end with a period (.).
  1. Click OK.

Add the second CNAME record for Lync Online.

  1. On the DNS Manager page for your domain, go to Action > CNAME (CNAME).
  2. In the New Resource Record dialog box, copy the values from the second CNAME row in the Lync Online section of the Office 365 Add DNS records page.
  • Host Name: Use the Host name value.
  • Type: select CNAME.
  • Address: Use the Points to address value. This value must end with a period (.).
  1. Click OK.

Add the first SRV record.

  1. On the DNS Manager page for your domain, go to Action > Other New Records.
  2. In the Resource Record Type window, select Service Location (SRV) and then click Create Record.
  3. Copy the values from the first SRV row in the Lync Online section of the DNS settings page into the empty record:
  • Service
  • Protocol
  • Priority
  • Weight
  • Port
  • Target (Hostname)
  1. Click OK.

Add the second SRV record.

  1. On the DNS Manager page for your domain, go to Action > Other New Records.
  2. In the Resource Record Type window, select Service Location (SRV) and then click Create Record.
  3. Copy the values from the first SRV row in the Lync Online section of the DNS settings page into the empty record:
  • Service
  • Protocol
  • Priority
  • Weight
  • Port
  • Target (Hostname)
  1. Click OK.

Add records to configure your public website on SharePoint Online (if needed)

If you host your public website on Office 365, before making it available from your custom domain name, make sure you have finished creating your SharePoint Online public website and are ready to make it available to the public.

When you’re ready to create the CNAME record, use the following steps to add the record.

ShowFor Office 365 Enterprise or Office 365 Midsize Business

Get an overview of the process by reading the topic that applies to you:

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

Task Action
Gather information from SharePoint Online.
  1. If you’re on the Domains page in Office 365, go to the SharePoint admin center:
  1. Click Domains, click the domain name, and then click Edit domain intent.
  2. Select SharePoint Online.
  3. Click Save.
  4. Click SharePoint admin center.
  1. From the SharePoint admin center:
  1. Click Manage site collections, and then select the check box next to your public website.
  2. On the ribbon, click DNS Information.
  1. Write down or copy the target address so you’ll have it ready when you create the DNS records.
Add a CNAME record.
  1. On the DNS Manager page for your domain, go to Action > CNAME (CNAME).

To find this page for your domain, see Find your DNS records in Windows-based DNS.

  1. In the New Resource Record dialog box, enter the following:
  • Host Name: Use the name of your custom domain; for example, www.contoso.com.
  • Type: select CNAME.
  • Address: Use the target address value from the DNS Information page.
  1. Click OK.

ShowFor Office 365 Small Business

Get an overview of the process by reading Use a custom domain name for your Office 365 public website address.

When you’re ready to create the CNAME record at your DNS hosting provider, use the steps in the following table.

Task Action

Add a CNAME record.

  1. On the DNS Manager page for your domain, go to Action > CNAME (CNAME).

To find this page for your domain, see Find your DNS records in Windows-based DNS.

  1. In the New Resource Record dialog box, enter the following:
  • Host Name: Use the name of your custom domain; for example, www.contoso.com.
  • Type: select CNAME.
  • Address: Use name.sharepoint.com.
    Name is the name of your custom domain, for example contoso.sharepoint.com.
  1. Save the record

Add an additional record that’s required for Office 365

To add the additional record that is required for Office 365, use the steps in the following table. Learn why this record is needed.

Task Action

Add a CNAME record.

  1. On the DNS Manager page for your domain, go to Action > CNAME (CNAME).

To find this page for your domain, see Find your DNS records in Windows-based DNS.

  1. In the New Resource Record dialog box, copy the values from the second CNAME row in the Additional Office 365 records section of the Office 365 Add DNS records page.
  • Host Name: Use the Host name value.
  • Type: select CNAME.
  • Address: Use the Points to address value. This value must end with a period (.).
  1. Click OK.

Add a record to verify that you own the domain, if you haven’t already

To add a record in Windows-based DNS to verify your domain, use the steps in the following table.

 Note    This record is used only to verify that you own your domain; it doesn’t affect anything else.

Task Action

Gather information from Office 365.

  1. If you’re not signed in to Office 365, sign in to Office 365. In the header, go to Admin > Office 365, and then click Domains.
  2. If you haven’t yet added a domain, on the Domains page, click Add a domain, and follow the steps in the wizard. For more information about adding a domain, see Add your domain to Office 365.
  3. If you’ve already added a domain, on the Domains page, in the Status column for the domain that you are verifying, click Setup in progress.
  4. On the Add a domain to Office 365 page, in the See instructions for performing this step with drop-down list, select General instructions.
  5. From the table, copy or write down the Destination or Points to Address information. You’ll need it for the next step.

Add a TXT record.

  1. On the DNS Manager page for your domain, go to Action > Text (TXT).
    To find this page for your domain, see Find your DNS records in Windows-based DNS.
  2. In the New Resource Record dialog box, copy the values Click Edit.
  3. In the Custom Host Names area, enter the following values:
  • Host Name: type or paste @
  • Type: select TXT.
  • Address: use the Destination or Points to Address value that you copied from Office 365.
  1. Click OK, and then click Done.

Verify your domain in Office 365.

  1. Wait at least 15 minutes for the changes to take effect across the Internet.
  2. If you’re not yet signed in to Office 365, sign in to Office 365, and in the header, go to Admin > Office 365, and then click Domains.
  3. In the Domains list, in the Status column for the domain you are verifying, click Click to verify domain.
  4. On the Confirm that you own your_domain page, click done, verify now, and in the confirmation dialog box, click Finish.
 
 
Се однесува на:
Office 365 Enterprise admin, Office 365 Midsize Business admin, Office 365 Small Business admin