在 [DNS 建立 WEB1 別名 (CNAME) 記錄Create an Alias (CNAME) Record in DNS for WEB1

適用於:Windows Server(以每年次管道)、Windows Server 2016Applies To: Windows Server (Semi-Annual Channel), Windows Server 2016

您可以在您的網域控制站 DNS 在時區新增別名正式名稱 (CNAME) 資源記錄網頁伺服器使用此程序。You can use this procedure to add an Alias canonical name (CNAME) resource record for your Web server to a zone in DNS on your domain controller. CNAME 記錄時,您可以使用多個名稱指向單一主機,讓您輕鬆地執行等主機相同的電腦上的網頁伺服器和檔案傳輸通訊協定 (FTP) 伺服器。With CNAME records, you can use more than one name to point to a single host, making it easy to do such things as host both a File Transfer Protocol (FTP) server and a Web server on the same computer.

因為您的免費使用您的網頁伺服器管理憑證撤銷您憑證授權單位清單 (CRL) (CA),以及執行其他服務,例如 FTP 或網頁伺服器至於。Because of this, you are free to use your Web server to host the certificate revocation list (CRL) for your certification authority (CA) as well as to perform additional services, such as FTP or Web server.

當您執行此程序時,來取代別名及其他適用於您的部署的值與變數。When you perform this procedure, replace Alias name and other variables with values that are appropriate for your deployment.

若要執行此程序,您必須成員的網域系統管理員To perform this procedure, you must be a member of Domain Admins.

若要新增至區域別名 (CNAME) 資源記錄To add an alias (CNAME) resource record to a zone


使用 Windows PowerShell 來執行這個程序,請查看新增-DnsServerResourceRecordCNameTo perform this procedure by using Windows PowerShell, see Add-DnsServerResourceRecordCName.

  1. 在 DC1,在伺服器管理員中,按一下工具,然後按一下 [ DNSOn DC1, in Server Manager, click Tools and then click DNS. 開啟 DNS 管理員 Microsoft Management Console (MMC)。The DNS Manager Microsoft Management Console (MMC) opens.

  2. 在主控台按兩下 [正向對應區域,以滑鼠右鍵按一下您要新增別名資源記錄],然後按一下 [轉寄對應區域新別名 (CNAME)In the console tree, double-click Forward Lookup Zones, right-click the forward lookup zone where you want to add the Alias resource record, and then click New Alias (CNAME). 新資源記錄對話方塊。The New Resource Record dialog box opens.

  3. 別名,輸入別名pkiIn Alias name, type the alias name pki.

  4. 當您輸入的值別名完整的網域名稱 (FQDN)對話方塊中自動填滿。When you type a value for Alias name, the Fully qualified domain name (FQDN) auto-fills in the dialog box. 例如,如果您別名「pki「與您的網域是 corp.contoso.com,值pki.corp.contoso.com是為您自動填入。For example, if your alias name is "pki" and your domain is corp.contoso.com, the value pki.corp.contoso.com is auto-filled for you.

  5. 完整的網域名稱 (FQDN) 目標主機的,輸入您的網頁伺服器的 FQDN。In Fully qualified domain name (FQDN) for target host, type the FQDN of your Web server. 例如,如果您的網頁伺服器稱為 WEB1 且您的網域 corp.contoso.com,輸入WEB1.corp.contoso.comFor example, if your Web server is named WEB1 and your domain is corp.contoso.com, type WEB1.corp.contoso.com.

  6. 按一下[確定]來新增到區域記錄。Click OK to add the new record to the zone.