LoginSignup
1
0

[Google Cloud]CloudDomainsへのドメイン移管

Posted at

目的

ドメインの管理をGoogle Cloud上のサービスに移管する
現在はお名前ドットコムが管理しているドメインを、CloudDomainsに移管する

ドメイン委譲については、こちらを参照
Google Cloud CloudDNSへのドメイン委譲

ドメイン移管制限

Cloud DomainsにてGoogleCloudに登録しているドメイン一覧が確認できる。
貼り付けた画像_2023_09_05_10_40.png

現状はまだドメインの移管をしていないため、何もない状態
貼り付けた画像_2023_09_05_10_47.png

ドメインの移管はGUIからの操作はサポートされていないようだった
貼り付けた画像_2023_09_05_10_48.png

CloudShellからgcloudコマンドにて実施していく
ドメイン移管をサポートしているドメイン名の制限もあるので、下記を確認してください。
Transfer a registered domain from another registrar

今回はサポート対象のnetドメインを移管する

gcloudによる移管

まずはCloudShellを起動する
貼り付けた画像_2023_09_05_10_54.png

移管したいドメインのパラメータを取得 => xcloudx.netを移管する
コマンドより、CloudDNSがNSになっていること、移管には12USD発生することがわかる。

ドメイン費用については、こちらに記載がある
料金表

また、ドメインの移管ではなく委譲をしたい場合はこちらの記事を参照してください。
Google Cloud CloudDNSへのドメイン委譲

cloudshell$ gcloud domains registrations get-transfer-parameters xcloudyx.net
domainName: xcloudyx.net
nameServers:
- ns-cloud-a1.googledomains.com
- ns-cloud-a2.googledomains.com
- ns-cloud-a3.googledomains.com
- ns-cloud-a4.googledomains.com
supportedPrivacy:
- PRIVATE_CONTACT_DATA
- REDACTED_CONTACT_DATA
- PUBLIC_CONTACT_DATA
transferLockState: UNLOCKED
yearlyPrice:
  currencyCode: USD
  units: '12'

ドメイン移管の実施(お名前 -> CloudDNS)

ドメインを移管する前に、ドメインのネームサーバが移管元のサーバの場合、事前に委譲をしておくこと

下記の様な場合は、xcloudyx.netのNSサーバがお名前ドットコムになっているので、委譲操作を先にする

cloudshell$ gcloud domains registrations get-transfer-parameters xcloudyx.net
domainName: xcloudyx.net
nameServers:
- dns1.onamae.com
- dns2.onamae.com
supportedPrivacy:
- PRIVATE_CONTACT_DATA
- REDACTED_CONTACT_DATA
- PUBLIC_CONTACT_DATA
transferLockState: UNLOCKED
yearlyPrice:
  currencyCode: USD
  units: '12'

AuthCodeの取得(お名前ドットコム)

ドメインを移管する前に、移管元からAuthCodeを取得する必要がある。
移管したいドメインの詳細画面から取得が可能
貼り付けた画像_2023_09_05_13_35.png

AuthCodeをメモっておき、Whois情報公開代行を設定している場合は、OFFにする
貼り付けた画像_2023_09_05_13_36.png

公開代行を解除するドメインを選択し、確認をクリック
貼り付けた画像_2023_09_05_13_37.png

確認画面で問題なければ、確定をクリック
貼り付けた画像_2023_09_05_13_38.png

Whois情報の入力が不足している場合は、エラーとなるため
こちらのページを参照し、正しく情報を入力しておく必要がある
ドメイン情報の不備について
image.png

登録情報が正しければ完了する
image.png

ドメイン移管の実施

コマンドを実施し、先ほどメモしたAuthCodeを入力する

cloudshell$ gcloud domains registrations transfer xcloudyx.net

Google recently entered into an agreement for Squarespace, Inc.
to acquire all domain name registrations from Google Domains
(including all Cloud Domains), with the purchase subject to
regulatory approval and customary closing conditions. If the
transaction closes, Squarespace will become your domain registrar and,
following a transition period, your domain specific information,
if applicable, will be transferred to Squarespace, at which point
Squarespace's Privacy Policy and Terms of Service will apply.
By continuing you acknowledge that you have read and agree to the above.

Please provide the authorization code from the domain's current registrar to transfer the domain.
Authorization code:  Code入力

Authorization Codeを入力すると、年間費用が記載されるので問題ないか確認し、yを入力

Yearly price: 12.00 USD
Do you agree to pay this yearly price for your domain (y/N)?  y

DNSの設定をどうするか指定する。
推奨は"3"となるため、そのまま次に進む
Provide your DNS settings

Choose to keep the domain's DNS settings from its current registrar (recommended).

You can provide your DNS settings in one of several ways:
You can specify a Cloud DNS Managed Zone name. To avoid downtime following transfer, make sure the zone is configured correctly before proceeding.
You can select free name servers provided by Google Domains. This blank-slate option cannot be configured before transfer.
You can also choose to keep the domain's DNS settings from its current registrar. Use this option only if you are sure that the domain's current DNS service will not cease upon transfer, as is often the 
case for DNS services provided for free by the registrar.
 [1] Provide Cloud DNS Managed Zone name
 [2] Use free name servers provided by Google Domains
 [3] Keep current DNS settings from current registrar
Please enter your numeric choice (3):  3

必要な情報を入力するため、Yを入力して先に進む

Contact data not provided using the --contact-data-from-file flag.
Do you want to enter it interactively (Y/n)?  

必要な情報を入力し、 [1] private-contact-dataを入力して完了
入力方法については、下記を参照
Transfer the domain

Full name:  xxx xxxx
Organization (if applicable):  
Email:  xxx@gmail.com
".
Phone number:  +81.8043xxxxxx
".
Fax number (if applicable):  
Enter two-letter Country / Region code, e.g. "US" or "PL".
Country / Region code:  JP
Refer to the guidelines for entering address field information at https://support.google.com/business/answer/6397478.
Postal / ZIP code:  xxx-xxxx
State / Administrative area (if applicable):  xxx
City / Locality:  
Address Line 1:  xxx-shi, xxx-ku, xxx 1-1-1
Address Line 2 (if applicable):  
Specify contact privacy
 [1] private-contact-data
 [2] redacted-contact-data
 [3] public-contact-data
Please enter your numeric choice (1):  1

Waiting for 'operation-1693890948366-60495b84401c5-805ffc2a-f188aaa7' to complete...done.                                                                                                                    
Created registration [xcloudyx.net] Note:
The domain transfer has been initiated, but is not yet complete. The registrant may need to follow instructions in a transfer confirmation email sent by the current registrar in order for the transfer to proceed. Even after confirmation, transfers can sometimes take several days to complete. The transfer will be complete when the registration resource changes state to ACTIVE.

最後に、Googleとお名前ドットコムからメールがくるので、ドメイン移管の承認を実施したら完了

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0