建立 Azure DNS 區域的 DNS 記錄Create DNS records for Azure DNS zones

若您找不到所需內容,請**查看網域常見問題集Check the Domains FAQ** if you don't find what you're looking for.

如果 Azure 是您的 DNS 主機服務提供者,請遵循本文中的步驟來驗證您的網域,並設定電子郵件、商務用 Skype Online 等的 DNS 記錄。If Azure is your DNS hosting provider, follow the steps in this article to verify your domain and set up DNS records for email, Skype for Business Online, and so on.

以下是要新增的主要記錄。These are the main records to add.

在 Azure 新增這些記錄之後,您的網域就會設定為與 Microsoft 服務搭配使用。After you add these records at Azure, your domain will be set up to work with Microsoft services.

注意

DNS 變更生效通常約需 15 分鐘的時間。而如果您所做的變更要在整個網際網路 DNS 系統中生效,有時可能需要更久的時間。在您新增 DNS 記錄後,如有郵件流程或其他方面的問題,請參閱變更網域名稱或 DNS 記錄之後所發生問題的疑難排解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.

變更您網域的名稱伺服器 (NS) 記錄Change your domain's nameserver (NS) records

重要

您必須在您購買及註冊網域的網域註冊機構中執行此程序。You must perform this procedure at the domain registrar where you purchased and registered your domain.

當您註冊 Azure 時,您會在 DNS 區域中建立資源群組,然後將您的功能變數名稱指派給該資源群組。When you signed up for Azure, you created a resource group within a DNS zone, and then assigned your domain name to that resource group. 該功能變數名稱已註冊到外部網域註冊機構;Azure 不提供網域註冊服務。That domain name is registered to an external domain registrar; Azure does not offer domain registration services.

若要在 Microsoft 中驗證及建立網域的 DNS 記錄,您必須先在您的網域註冊機構中變更名稱伺服器,以便使用指派給您資源群組的 Azure 名稱伺服器。To verify and create DNS records for your domain in Microsoft, you first need to change the nameservers at your domain registrar so that they use the Azure nameservers assigned to your resource group.

若要自行在網域註冊機構網站變更自家網域的名稱伺服器,請遵循下列步驟進行:To change your domain's name servers at your domain registrar's website yourself, follow these steps.

  1. 在網域註冊機構的網站上,找出您可編輯您網域之名稱伺服器的區域。Find the area on the domain registrar's website where you can edit the nameservers for your domain.

  2. 您可以使用下表中的值建立兩筆名稱伺服器記錄,或編輯現有的名稱伺服器記錄,使其符合這些值。Either create two nameserver records by using the values in the following table, or edit the existing nameserver records so that they match these values. Azure 指派名稱伺服器的範例如下所示。An example of Azure assigned nameservers is shown below.

第一個名稱伺服器:使用 Azure 所指派的名稱伺服器值。First nameserver: Use the name server value assigned by Azure.
第二個名稱伺服器:使用 Azure 所指派的名稱伺服器值。Second nameserver: Use the name server value assigned by Azure.

Azure-BP-重新委派-1-1

提示

You should use at least two name server records.You should use at least two name server records. 如果您的網域註冊機構網站上列出任何其他名稱伺服器,您應該將其刪除。If there are any other name servers listed at your domain registrar's website, you should delete them.

  1. 儲存變更。Save your changes.

注意

Your nameserver record updates may take up to several hours to update across the Internet's DNS system.Your nameserver record updates may take up to several hours to update across the Internet's DNS system. 然後,您的 Microsoft 電子郵件和其他服務將全部設定為與您的網域搭配使用。Then your Microsoft email and other services will be all set to work with your domain.

新增 TXT 記錄以供驗證Add a TXT record for verification

在您將自己的網域用於 Microsoft 之前,我們必須先確認您擁有該網域。如果您能在自己的網域註冊機構登入自己的帳戶並能建立 DNS 記錄,Microsoft 就能確信您擁有該網域。Before you use your domain with Microsoft, we have to make sure that you own it. Your ability to log in to your account at your domain registrar and create the DNS record proves to Microsoft that you own the domain.

注意

這筆記錄只會用於驗證您擁有自己的網域,不會影響其他項目。您可以選擇稍後再刪除記錄。This record is used only to verify that you own your domain; it doesn't affect anything else. You can delete it later, if you like.

  1. 若要開始使用,請使用此連結前往 Azure 上的網域頁面。To get started, go to your domains page at Azure by using this link. 系統會提示您先登入。You'll be prompted to log in first.

    Azure-BP-Configure-1-1

  2. 使用 [儀表板] 頁面上的搜尋列,輸入 [ DNS 區域]。Using the search bar on the Dashboard page, type in DNS zones. 在 [結果顯示] 中,選取 [服務] 部分底下的 [ DNS 區域]。In the results display, select DNS zones under the Services portion. 重新導向後,請選取您要更新的網域。Once you've been redirected, select the domain that you want to update.

    Azure-BP-Configure-1-2

  3. 在您網域的 [設定] 頁面上,選取 [ DNS 區域] 區域中的 [ + 記錄集]。On the Settings page for your domain, in the DNS zone area, select + Record set.

    Azure-BP-Configure-1-3

  4. 在 [新增記錄集] 區域,于新記錄集的方塊中,選取下表中的值。In the Add record set area, in the boxes for the new record set, select the values from the following table.

    (從下拉式清單中選擇 [類型] 和 [ TTL 單位] 值。)(Choose the Type and TTL unit values from the drop-down lists.)

    NameName TypeType TTLTTL TTL 單位TTL unit Value
    @
    TXTTXT
    1 1
    小時Hours
    MS=ms XXXXXXXXMS=ms XXXXXXXX
    附註: 這是範例。Note: This is an example. 在這裡請使用您自己來自表格的 [目的地或指向位址] 值。Use your specific Destination or Points to Address value here, from the table. 如何找到呢?How do I find this?

    Azure-BP-Verify-1-1

  5. 選取 [確定]Select OK.

  6. 繼續進行之前,請先稍候幾分鐘,好讓您剛剛建立的記錄能在網際網路上更新。Wait a few minutes before you continue, so that the record you just created can update across the Internet.

現在您已在網域註冊機構網站新增記錄,請返回 Microsoft 並要求該記錄。Now that you've added the record at your domain registrar's site, you'll go back to Microsoft and request the record.

在 Microsoft 找到正確的 TXT 記錄後,您的網域就完成驗證了。When Microsoft finds the correct TXT record, your domain is verified.

  1. 在系統管理中心中,移至 [設定] > [網域] 頁面。In the admin center, go to the Settings > Domains page.

  2. [網域] 頁面上,選取您要驗證的網域。On the Domains page, select the domain that you are verifying.

  3. [設定] 頁面上,選取 [開始設定]On the Setup page, select Start setup.

  4. [驗證網域] 頁面上,選取 [驗證]On the Verify domain page, select Verify.

注意

DNS 變更生效通常約需 15 分鐘的時間。而如果您所做的變更要在整個網際網路 DNS 系統中生效,有時可能需要更久的時間。在您新增 DNS 記錄後,如有郵件流程或其他方面的問題,請參閱變更網域名稱或 DNS 記錄之後所發生問題的疑難排解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.

新增 MX 記錄,以將寄往您網域的電子郵件轉至 MicrosoftAdd an MX record so email for your domain will come to Microsoft

  1. 若要開始使用,請使用此連結前往 Azure 上的網域頁面。To get started, go to your domains page at Azure by using this link. 系統會提示您先登入。You'll be prompted to log in first.

    Azure-BP-Configure-1-1

  2. 在 [儀表板] 頁面上的 [所有資源] 區域中,選取您要更新的網域。On the Dashboard page, in the All resources area, select the domain that you want to update.

    Azure-BP-Configure-1-2

  3. 在您網域的 [設定] 頁面上,選取 [ DNS 區域] 區域中的 [ + 記錄集]。On the Settings page for your domain, in the DNS zone area, select + Record set.

    Azure-BP-Configure-1-3

  4. 在 [新增記錄集] 區域,于新記錄集的方塊中,選取下表中的值。In the Add record set area, in the boxes for the new record set, select the values from the following table.

    (從下拉式清單中選擇 [類型] 和 [ TTL 單位] 值。)(Choose the Type and TTL unit values from the drop-down lists.)

    NameName TypeType TTLTTL TTL 單位TTL unit 偏好Preference 郵件交換Mail Exchange
    @
    MXMX
    1 1
    小時Hours
    10 10
    如需關於優先順序的詳細資訊,請參閱什麼是 MX 優先順序?For more information about priority, see What is MX priority?
    <domain-key>。 mail.protection.outlook.com<domain-key> .mail.protection.outlook.com
    *附注:***<domain-key> 從您的 Microsoft 帳戶取得。Note: Get your <domain-key> from your Microsoft account. 如何找到呢?How do I find this?

    Azure-BP-Configure-2-1

  5. 選取 [確定]Select OK.

    Azure-BP-Configure-2-2

  6. 如果 [ Mx 記錄] 區段中列出任何其他 MX 記錄,您必須加以刪除。If there are any other MX records listed in the MX Records section, you must delete them.

    首先,在 [ DNS 區域] 區域中,選取MX 記錄集First, in the DNS zone area, select the MX Record set.

    Azure-BP-Configure-2-3

    接下來,選取您要刪除的 MX 記錄。Next, select the MX record you want to delete.

    Azure-BP-Configure-2-4

  7. 選取快顯功能表(...),然後選擇 [移除]。Select the Context menu (…), and then choose Remove.

    Azure-BP-Configure-2-5

  8. 選取 [儲存]****。Select Save.

    Azure-BP-Configure-2-6

新增 Microsoft 所需的四種 CNAME 記錄Add the four CNAME records that are required for Microsoft

  1. 若要開始使用,請使用此連結前往 Azure 上的網域頁面。To get started, go to your domains page at Azure by using this link. 系統會提示您先登入。You'll be prompted to log in first.

    Azure-BP-Configure-1-1

  2. 在 [儀表板] 頁面上的 [所有資源] 區域中,選取您要更新的網域。On the Dashboard page, in the All resources area, select the domain that you want to update.

    Azure-BP-Configure-1-2

  3. 在您網域的 [設定] 頁面上,選取 [ DNS 區域] 區域中的 [ + 記錄集]。On the Settings page for your domain, in the DNS zone area, select + Record set.

    Azure-BP-Configure-1-3

  4. 新增四筆 CNAME 記錄中的第一筆。Add the first of the four CNAME records.

    在 [新增記錄集] 區域,于新記錄集的方塊中,輸入或複製並貼上下表中第一列的值。In the Add record set area, in the boxes for the new record set, type or copy and paste the values from the first row in the following table.

    (從下拉式清單中選擇 [類型] 和 [ TTL 單位] 值。)(Choose the Type and TTL unit values from the drop-down lists.)

    NameName TypeType TTLTTL TTL 單位TTL unit AliasAlias
    autodiscoverautodiscover
    CNAMECNAME
    1 1
    小時Hours
    autodiscover.outlook.comautodiscover.outlook.com
    sipsip
    CNAMECNAME
    1 1
    小時Hours
    sipdir.online.lync.comsipdir.online.lync.com
    lyncdiscoverlyncdiscover
    CNAMECNAME
    1 1
    小時Hours
    webdir.online.lync.comwebdir.online.lync.com

    Azure-BP-Configure-3-1

  5. 選取 [確定]Select OK.

    Azure-BP-Configure-3-2

  6. 新增其他三筆 CNAME 記錄。Add each of the other three CNAME records.

    在 [ DNS 區域] 區域中,選取 [ + 記錄集]。In the DNS zone area, select + Record set. 然後,在空白的記錄集中,使用表格中下一列的值來建立記錄,然後再選取 [確定] 以完成記錄。Then, in the empty record set, create a record by using the values from the next row in the table, and again select OK to complete that record.

    重複此程式,直到您已建立所有四筆 CNAME 記錄為止。Repeat this process until you have created all four CNAME records.

  7. 選新增兩個 MDM 的 CNAME 記錄。(Optional) Add 2 CNAME records for MDM.

重要

如果您有 Microsoft 的行動裝置管理(MDM),則必須建立兩個額外的 CNAME 記錄。If you have Mobile Device Management (MDM) for Microsoft, then you must create two additional CNAME records. 請按照您針對其他四筆 CNAME 記錄所進行的程序執行,但提供下表的值。Follow the procedure that you used for the other four CNAME records, but supply the values from the following table. (如果您沒有 MDM,您可以略過此步驟。)(If you do not have MDM, you can skip this step.)

NameName TypeType TTLTTL TTL 單位TTL unit AliasAlias
enterpriseregistrationenterpriseregistration
CNAMECNAME
1 1
小時Hours
enterpriseregistration.windows.netenterpriseregistration.windows.net
enterpriseenrollmententerpriseenrollment
CNAMECNAME
1 1
小時Hours
enterpriseenrollment-s.manage.microsoft.comenterpriseenrollment-s.manage.microsoft.com

新增 SPF 的 TXT 記錄以協助防範垃圾郵件Add a TXT record for SPF to help prevent email spam

重要

網域的 SPF 不得擁有一個以上的 TXT 記錄。You cannot have more than one TXT record for SPF for a domain. 如果您的網域具有多筆 SPF 記錄,您將收到電子郵件錯誤,以及傳送及垃圾郵件分類問題。If your domain has more than one SPF record, you'll get email errors, as well as delivery and spam classification issues. 如果網域已經有 SPF 記錄,請勿為 Microsoft 建立一個新的記錄。If you already have an SPF record for your domain, don't create a new one for Microsoft. 請改為將必要的 Microsoft 值新增至目前的記錄,讓您擁有包含這兩組值的單一SPF 記錄。Instead, add the required Microsoft values to the current record so that you have a single SPF record that includes both sets of values.

  1. 若要開始使用,請使用此連結前往 Azure 上的網域頁面。To get started, go to your domains page at Azure by using this link. 系統會提示您先登入。You'll be prompted to log in first.

    Azure-BP-Configure-1-1

  2. 在 [儀表板] 頁面上的 [所有資源] 區域中,選取您要更新的網域。On the Dashboard page, in the All resources area, select the domain that you want to update.

    Azure-BP-Configure-1-2

  3. 在 [ DNS 區域] 區域中,選取TXT 記錄集In the DNS zone area, select the TXT record set.

    Azure-BP-Configure-4-1

  4. 在 [記錄集屬性] 區域的新記錄集方塊中,選取下表中的值。In the Record set properties area, in the boxes for the new record set, select the values from the following table.

    (從下拉式清單中選擇 [類型] 和 [ TTL 單位] 值。)(Choose the Type and TTL unit values from the drop-down lists.)

    NameName TypeType TTLTTL TTL 單位TTL unit Value
    @
    TXTTXT
    1 1
    小時Hours
    v=spf1 include:spf.protection.outlook.com -allv=spf1 include:spf.protection.outlook.com -all
    附註: 建議您複製並貼上這個項目,好讓所有的間距保持正確。Note: We recommend copying and pasting this entry, so that all of the spacing stays correct.

    Azure-BP-Configure-4-2

  5. 選取 [儲存]****。Select Save.

    Azure-BP-Configure-4-3

新增兩筆 Microsoft 所需的 SRV 記錄Add the two SRV records that are required for Microsoft

  1. 若要開始使用,請使用此連結前往 Azure 上的網域頁面。To get started, go to your domains page at Azure by using this link. 系統會提示您先登入。You'll be prompted to log in first.

    Azure-BP-Configure-1-1

  2. 在 [儀表板] 頁面上的 [所有資源] 區域中,選取您要更新的網域。On the Dashboard page, in the All resources area, select the domain that you want to update.

    Azure-BP-Configure-1-2

  3. 在您網域的 [設定] 頁面上,選取 [ DNS 區域] 區域中的 [ + 記錄集]。On the Settings page for your domain, in the DNS zone area, select + Record set.

    Azure-BP-Configure-1-3

  4. 新增兩筆 SRV 記錄中的第一筆。Add the first of the two SRV records.

    在 [新增記錄集] 區域,于新記錄集的方塊中,選取下表中第一列的值。In the Add record set area, in the boxes for the new record set, select the values from the first row in the following table.

    (從下拉式清單中選擇 [類型] 和 [ TTL 單位] 值。)(Choose the Type and TTL unit values from the drop-down lists.)

    NameName TypeType TTLTTL TTL 單位TTL unit Priority (優先順序)Priority Weight (權數)Weight Port (連接埠)Port TargetTarget
    _sip。 _tls_sip._tls
    SRVSRV
    1 1
    小時Hours
    100100
    1 1
    443443
    sipdir.online.lync.comsipdir.online.lync.com
    _sipfederationtls。 _tcp_sipfederationtls._tcp
    SRVSRV
    1 1
    小時Hours
    100100
    1 1
    50615061
    sipfed.online.lync.comsipfed.online.lync.com

    Azure-BP-Configure-5-1

  5. 選取 [確定]Select OK.

    Azure-BP-Configure-5-2

  6. 新增另一筆 SRV 記錄。Add the other SRV record.

    在新記錄的方塊中,輸入或複製並貼上表格中第二列的值。In the boxes for the new record, type or copy and paste the values from the second row of the table.

注意

DNS 變更生效通常約需 15 分鐘的時間。而如果您所做的變更要在整個網際網路 DNS 系統中生效,有時可能需要更久的時間。在您新增 DNS 記錄後,如有郵件流程或其他方面的問題,請參閱變更網域名稱或 DNS 記錄之後所發生問題的疑難排解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.