How To Add Custom Domain on Your Google Compute Engine

Post image

Recently, I Purchase Domain On Google Domains. Google Domains Provide Sevices Like Godaddy. You Easily Purchase Domain With Googles Domains.

Most Important When You Purchase Domain with Google. You Are Verify On Webmaster, Adsense, Google Tag Manager, and Google Analytics. Because Google Verify Your Domain Automatic make Sure Your Email Account Same

Simple Follow This Steps

  • Copy Instances IP
  • Add Domain
  • Name Server

Copy Instances IP:

Go to Working Project Dashboard.

https://console.cloud.google.com/

Dashboard
Dashboard

Your Dashboard Look Like.


Go To VM Instances Page
Go To VM Instances Page
  • Open Your Project Dashboard Click To Left Top Conner Navbar Icon After Scroll Down Find Compute Engine.
  • Click Compute Engine Icon After Select VM Instances.

Copy External Ip Address
Copy External Ip Address

Add Domain:

Firstly Copy Ip Go To Cloud DNS
Firstly Copy Ip Go To Cloud DNS
  • Firstly Copy IP Address Correctly and Go To Left Top Conner Navbar Icon. After Scroll Down, Find Cloud DNS

Enable IP
Enable IP
  • First Time Open Cloud DNS Then You See Enable Ip Address Page. You Click Enable Button.

Create Zone
Create Zone
  • First Time Open Cloud DNS Page. Your Page Look Like.

Create Zone
Create Zone
  • Your Exiting user or Add Other Domain. Your Cloud DNS Page Look Like. Click Create Zone Page.
  • after Open New Page Enter Your Domain Information

Create DNA Zone
Create DNA Zone
  • Open Your Create DNS Zone Web Page. Fill in Any Name, Domain Name, And Description. Click To Create Button.

Enter Your Instance IP address
Enter Your Instance IP address
  • When Your DNS Zone Create Success Full, You See Zone Details Page. By Default Look Like.
  • Inside Your Zone Details Page, You See Your Custom Name Server. Copy Name Server Change in Your Domain.

Add New Record
Add New Record
  • Add New Record In Your Zone So Click To ADD RECORD Button.
  • You Add Only Two New Record with a or cname Record.

A Record:

add domain in gcp
Add A Record
  • Your DNA Name Input Always Blank In A record.
  • Inside Resource Record Type Allwayes Set A Record.
  • Inside IPv4 Address input, You Passed Your External Copy Ip Address Here.
  • After You Click Save Button.

Cname Record:

If Add www On Your Site Follow This Step:

Add CNAME In Your Record
Add CNAME In Your Record
  • You Enter www in your DNA Name Form Field.
  • In Canonical name, Field Add Your Domain Without HTTP, HTTPS, and www.
  • Exmple : officialrajdeepsingh.dev
  • Fill All Form Then Click Create Button.

Name Server:

My Domain Register In Google Domains. So I Open My Google Domain Dashboard. Enter New Name Server Provide By Google.Your Domain Register Deferent Make Sure You Change Name Server In Your Domain.

Go to > https://domains.google.com/registrar/.

Google Domain Dashboard
Google Domain Dashboard
  • Your Domain Dashboard Look Like. Click To Your Domain.

Click DNS Tab
Click DNS Tab
  • When Select Your Domain. After Open Your Domain Page. Then Click DNS Tab

Add Custom Name Servers
Add Custom Name Servers
  • Open Your DNS Page. Click on use custom name Servers Button.

You Success Full Add Name Server
You Success Full Add Name Server
  • After Paste Your Name Server Which You Copy On GCP Account.

When You Register Domain With Google. Your Name Servers Change Instantly.


Conclusion:

If You Follow My article. You Definite Add Your Domain in GCP Account. Now Your Ghost Blog Running Your Domain Without SSL Certificate.

If you have Any Problems or Errors, Contact Me. I try to help solve your problem.

Thank you. Stay With Me.


Contact me

You May Also Like

comments powered by Disqus