Configure Domain to Google Compute Engine with Google Cloud DNS

Bismo Baruno
3 min readApr 30, 2020

--

Photo by pixabay.com

Hi everyone! With me again and again to share some experience, though or opinion about technology related with software engineering field. On previous story, we already learn about deploying application to Google Compute Engine. The story can be found in this link: https://medium.com/@bismobaruno/f7e01693b645

Then, how about if we want to change the Google Compute Engine IP Address with our domain? In this part, we will learn how to configure our domain to our Google Compute Engine instance with Google Cloud DNS.

Go to GCP console link https://console.cloud.google.com/

Click Navigation Menu and scroll down to Network services. Choose Cloud DNS on the submenu.

Picture 1 Choose Cloud DNS Service

After choose the service, we will redirected to Cloud DNS page, next step, click Create zone button for hosted the zone.

Picture 2 Choose Create Zone

Fill the form based on your domain. After everything is done, click Create button.

Picture 3 Create Zone

After successfully created, we will redirected to Zone details page with the domain information based on our input on previous step.

Picture 4 Zone Details Page

Change your name servers domain (I’m using Namecheap) with the name servers from Google:

Picture 5 Change Name Servers

Back to Zone details page, add record by clicking Add record set button.

Picture 6 Choose Add Record Set

Fill the information for DNS Name and IPv4 Address then click Create button. IPv4 Address can be found on VM instances page from Compute Engine menu.

Picture 7 IPv4 Address Information
Picture 8 Setup WWW Record

Wait for the moment, maybe can be took until 48 hours or just a few minutes, after configuration has been done by system, we can access our instance using domain name.

Picture 9 Access Instance by Domain

Voila, it’s works! Now you can access the App by our domain!

Hope you enjoy it, I’m happy if this article useful for you! Happy Coding!

Thank you!

Others story that still related

--

--

Bismo Baruno
Bismo Baruno

Written by Bismo Baruno

Software Engineer | Traveler | Guitarist | J-Lovers

No responses yet