編輯網域的註冊設定

本頁面說明如何編輯 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 詳細資料」。從下表中選擇一個選項。

    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 天前變更自動續約設定。

使用國家/地區代碼頂層網域的網域:當這些網域到期時,您必須等待 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

後續步驟