編輯網域的註冊設定

本頁面說明如何在 Cloud Domains 中編輯現有網域的註冊設定,包括聯絡人設定、隱私權設定和 DNS 設定。

事前準備

完成工作前,請先詳閱 Cloud Domains 總覽和疑難排解頁面上的下列資訊:

編輯聯絡資訊和隱私權設定

註冊網域時,您必須提交該網域的相關聯絡資訊。

如要編輯註冊的聯絡設定 (例如電子郵件、電話號碼和郵寄地址),以及選擇聯絡資訊的隱私權設定,請完成下列步驟。

主控台

  1. 前往 Google Cloud 控制台的「Cloud Domains」頁面。

    前往「Cloud Domains」頁面

  2. 按一下要編輯的網域名稱。你也可以按一下網域名稱旁的「更多」,查看編輯選單。

  3. 如要編輯聯絡人詳細資料,包括與網域相關聯的名稱、地址和電子郵件地址,請按一下「編輯聯絡人詳細資料」

  4. 進行必要變更。

  5. 選擇或編輯隱私權設定。所選網域可用的隱私權選項可能有所不同。

  6. 按一下 [儲存]

gcloud

使用 gcloud domains registrations configure contacts 指令

gcloud domains registrations configure contacts DOMAIN_NAME

DOMAIN_NAME 替換為註冊的網域名稱,例如 example.app

以下範例顯示變更網域 example.com 的隱私權設定時的輸出內容:

Contact data not provided using the --contact-data-from-file flag.

Do you want to enter it interactively (y/N)?  y

Which contact do you want to change?
 [1] all the contacts to the same value
 [2] registrant contact
 [3] admin contact
 [4] technical contact
 [5] cancel
Please enter your numeric choice (1):  1

Full name:  NAME
Organization (if applicable):  ORGANIZATION
Email (darcy@gmail.com):  EMAIL_ADDRESS
Enter phone number with country code, e.g. "+1.8005550123".
Phone number:  PHONE_NUMBER
Enter fax number with country code, e.g. "+1.8005550123".
Fax number (if applicable):  FAX_NUMBER
Enter two-letter country code, e.g. "US" or "PL".
Refer to the guidelines for entering address field information at https://support.google.com/business/answer/6397478.
Country / Region code:  COUNTRY_CODE
Postal / ZIP code:  ZIP_CODE
State / Administrative area (if applicable):  STATE
City / Locality:  CITY
Address Line 1:  ADDRESS_LINE_1
Address Line 2 (if applicable):  ADDRESS_LINE_2
Address Line 3 (if applicable):
Your current contact privacy is REDACTED_CONTACT_DATA.

Do you want to change it (y/N)?  y

Specify contact privacy
 [1] private-contact-data
 [2] redacted-contact-data
 [3] public-contact-data
Please enter your numeric choice (2):  1

Waiting for 'operation-1596738116518-5ac39903c0348-5391fe45-78f57284' to
complete...done.
Updated registration [example.com] Note:
The contact settings are currently pending.
In order to finalize the update you need to confirm the change.
An email with instructions has been sent to the registrant.

更改下列內容:

  • NAME:您的全名,例如 Alice Smith
  • ORGANIZATION:(選用) 貴機構,例如 Doe Corp
  • EMAIL_ADDRESS:用於驗證的電子郵件地址,例如 alice@example.net
  • PHONE_NUMBER:聯絡人的電話號碼,格式為國際格式,例如 +1-800-555-0123
  • FAX_NUMBER:聯絡人的傳真號碼,格式為國際格式,例如 +1-800-555-0123
  • COUNTRY_CODE:地址的國家/地區代碼,例如 US 代表美國
  • ZIP_CODE:地址的郵遞區號,例如 94043
  • STATE:地址的州或行政區,例如 CA
  • CITY:地址的城市或地區,例如 Mountain View
  • ADDRESS_LINE_1:註冊者的第一行地址,例如 1599 Bayview Parkway

    最多可以有 5 行地址,但第一行為必填。

  • ADDRESS_LINE_2:(選用) 註冊者的第二行地址,例如 APT. 123

API

使用 registrations.configureContactSettings 方法

POST https://domains.googleapis.com/v1/projects/PROJECT_ID/locations/global/registrations/DOMAIN_NAME:configureContactSettings

更改下列內容:

  • PROJECT_ID:專案名稱
  • DOMAIN_NAME:要變更聯絡人設定的網域

要求主體可以是下列其中一項:

  • 如要變更註冊者聯絡人的電子郵件地址,請按照下列步驟操作:

    {
      "contactSettings": {
        "registrantContact": {
          "email": "new-registrant@example.com",
        },
      },
      "updateMask": "registrantContact.email",
    }
    
  • 如要將隱私權設定變更為「公開」,請按照下列步驟操作:

    {
      "contactSettings": {
        "privacy": "PUBLIC_CONTACT_DATA",
      },
      "updateMask": "privacy",
      "contactNotices": ["PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT"],
    }
    
  • 如要變更整個註冊者聯絡資訊和隱私權設定,請按照下列步驟操作:

    {
      "contactSettings": {
        "privacy": "CONTACT_PRIVACY",
        "registrantContact": {
          "postalAddress": {
            "regionCode": "REGION_CODE",
            "postalCode": "POSTAL_CODE",
            "administrativeArea": "SUBDIVISION",
            "locality": "CITY",
            "addressLines": [
              "ADDRESS"
            ],
            "recipients": [
              "CONTACT_NAME"
            ],
            "organization": "ORGANIZATION"
          },
          "email": "EMAIL_ADDRESS",
          "phoneNumber": "PHONE_NUMBER",
          "faxNumber": "FAX_NUMBER"
        }
      },
      "updateMask": "privacy,registrantContact",
    }
    

    請將 registrantContactadminContacttechnicalContact 替換為您想變更的值。如要進一步瞭解各類聯絡人,請參閱「聯絡人隱私權」。

    • CONTACT_PRIVACY:聯絡人資料的偏好隱私權設定
    • REGION_CODE:地址的區域代碼,例如 US 代表美國
    • POSTAL_CODE:地址的郵遞區號,例如 94043
    • SUBDIVISION:地址的最高行政區劃,例如州、省、州或縣,例如加州為 CA
    • CITY:地址的城市或鄉鎮名稱,例如 Mountain View
    • ADDRESS:地址的較低層級,例如 1599 Amphitheater Parkway
    • CONTACT_NAME:聯絡人姓名
    • ORGANIZATION:(選用) 註冊網域的機構名稱,例如 Doe Corporation
    • EMAIL_ADDRESS:聯絡人的電子郵件地址,例如 john@example.com
    • PHONE_NUMBER:聯絡人的電話號碼,格式為國際格式,例如 +1-800-555-0123
    • FAX_NUMBER:(選用) 聯絡人的傳真號碼,格式為國際格式,例如 +1-800-555-0123

編輯 DNS 設定

如要編輯或設定註冊項目的 DNS 設定 (包括網域的授權名稱伺服器),請完成下列步驟。

主控台

  1. 前往 Google Cloud 控制台的「Cloud Domains」頁面。

    前往「Cloud Domains」頁面

  2. 按一下要編輯的網域名稱。你也可以按一下網域名稱旁的「更多」,查看編輯選單。

  3. 如要編輯 DNS 詳細資料,包括 DNS 供應商選項和 DNSSEC 設定,請按一下「編輯 DNS 詳細資料」。請從下表選擇其中一個選項。 <0

    DNS 供應商 說明 費用
    Cloud DNS Google 建議您使用 Cloud DNS 做為所有名稱伺服器的 DNS 供應商。使用 Cloud DNS 時須支付額外費用。詳情請參閱 Cloud DNS 定價頁面
    自訂名稱伺服器 選擇這個選項後,您可以使用 Cloud Domains 設定名稱伺服器,然後透過第三方 DNS 供應商設定 DNS 資源記錄。 請洽詢 DNS 供應商。

  4. 按一下 [儲存]

gcloud

使用 gcloud domains registrations configure dns 指令

gcloud domains registrations configure dns DOMAIN_NAME

DOMAIN_NAME 替換為註冊的網域名稱,例如 example.app

以下範例顯示將網域 example.com 的 DNS 供應商從 Google Domains 變更為 Cloud DNS 時的輸出內容:

Your current DNS settings are:
googleDomainsDns:
 dsState: DS_RECORDS_UNPUBLISHED
 nameServers:
 ‐ ns-cloud-b1.googledomains.com
 ‐ ns-cloud-b2.googledomains.com
 ‐ ns-cloud-b3.googledomains.com
 ‐ ns-cloud-b4.googledomains.com
You can provide your DNS settings by specifying name servers or Cloud DNS
Managed Zone name
 [1] Provide name servers list
 [2] Provide Cloud DNS Managed Zone name
 [4] cancel
Please enter your numeric choice (4):  2

Cloud DNS Managed Zone name:  example-app

Waiting for 'operation-1596738623568-5ac39ae74fa6f-1025c18d-9d3a4872' to
complete...done.
Updated registration [example.com].

API

使用 registrations.configureDnsSettings 方法

POST https://domains.googleapis.com/v1/projects/PROJECT_ID/locations/global/registrations/DOMAIN_NAME:configureDnsSettings

更改下列內容:

  • PROJECT_ID:專案名稱
  • DOMAIN_NAME:要變更聯絡人設定的網域

要求主體可以是下列其中一項:

  • 如要更新或切換至自訂名稱伺服器,請按照下列步驟操作:
    {
      "dnsSettings": {
        "customDns": {
          "nameServers": [
            "ns-cloud-a1.googledomains.com",
            "ns-cloud-a2.googledomains.com",
            "ns-cloud-a3.googledomains.com",
            "ns-cloud-a4.googledomains.com"
          ]
        }
      },
      "updateMask": "customDns"
    }
    

編輯自動續訂設定

所有網域都會自動續約。如要變更自動續約設定,請務必在到期日前至少 15 天完成。

使用國家/地區代碼 TLD 的網域:這類網域過期後,必須等待 72 小時,才能為網域續約或變更自動續約設定。

關閉自動續訂功能

如要停用網域自動續約功能,請按照下列步驟操作:

主控台

  1. 前往 Google Cloud 控制台的「Cloud Domains」頁面。
  2. 前往 Cloud Domains
  3. 按一下要停用自動續約功能的網域名稱。
  4. 按一下「停用自動續約」
  5. 在「停用自動續約功能」對話方塊中,按一下「停用」

gcloud

使用 gcloud domains registrations configure management 指令

gcloud domains registrations configure management DOMAIN_NAME \
    --preferred-renewal-method=renewal-disabled

DOMAIN_NAME 替換為註冊的網域名稱,例如 example.app

啟用自動續約功能

如要啟用網域自動續約功能,請按照下列步驟操作:

主控台

  1. 前往 Google Cloud 控制台的「Cloud Domains」頁面。
  2. 前往 Cloud Domains
  3. 按一下要啟用自動續約的網域名稱。
  4. 按一下「啟用自動續約」
  5. 在「啟用自動續約」對話方塊中,按一下「啟用」

gcloud

使用 gcloud domains registrations configure management 指令

gcloud domains registrations configure management DOMAIN_NAME \
    --preferred-renewal-method=automatic-renewal

DOMAIN_NAME 替換為註冊的網域名稱,例如 example.app

後續步驟