Setting up Google Cloud DNS for your domain

Cloud Hosting and Shared Hosting has a significant difference in performance. While Cloud hosting is dedicated for you, Shared Hosting will use a Server shared with multiple people resulting is performance issues. Discussing about differences between Cloud Hosting vs Shared Hosting is a topic for another day. This article will have a look on setting up Google Cloud DNS for your domain.

What is DNS?

The Domain Name System (DNS) is a hierarchical and decentralized naming system for computers, services, or other resources connected to the Internet or a private network. It translates more readily memorized domain names to the numerical IP addresses needed for locating and identifying computer services and devices with the underlying network protocols. Simply a DNS or Nameservers maps device hostnames with their respective IP addresses.

By providing a worldwide, distributed directory service, the Domain Name System has been an essential component of the functionality of the Internet since 1985.

Simply DNS or Nameservers maps device hostnames with their respective IP addresses.

How DNS work?

DNS is the Internet’s equivalent to a phone book. They maintain a directory of domain names and translate them to Internet Protocol (IP) addresses.

For example, DNS is also similar to a telecommunication network. There are codes for Countries, States and identified Zones in addition to the telephone number dedicated to a user. Every user will have a unique telephone number and the telephone directory will server all required details to each user.

On the Internet, we use DNS in a similar way to identify each and every computer on the Internet to communicate with each other.

What is Cloud DNS?

As we explained, DNS is a hierarchical distributed database that lets you store IP addresses and other data, and look them up by name. Cloud DNS lets you publish your zones and records in the DNS without the burden of managing your own DNS servers and software.
Pre-requisites for setting up Cloud DNS

Prerequisites to configure Cloud DNS

In this example, we will explore how to use cloud DNS to route a registered address to your GCP instance, particularly to a VM running a web server using your Domain name. We require that you :

  • own a Domain
  • have access to DNS records to manage settings.
  • have setup a GCP Instance / Virtual Machine in Google Cloud (GCP)
  • have access to alter GCP settings
  • have the external IPv4 address of the Virtual Machine

If you haven’t configured a Virtual Machine running a website or a web server; have a look into this article on deploying an Odoo ERP server quickly on Google Cloud using Bitnami application offering.

A Step-by-step guide to configuring Cloud DNS

Head to the Networking section in GCP. If you get an error as highlighted below; you haven’t selected a project.

Creating a Zone

Cloud DNS
Cloud DNS

Now click on Create Zone and input the appropriate zone and DNS names. The Zone name could be anything but should be unique.

Create Cloud DNS
Create Cloud DNS

Now click on Create Zone and input the appropriate zone and DNS names. The Zone name could be anything but should be unique.

The following screen will appear.

Create a DNS Zone
Create a DNS Zone

Refer below explanations to understand what to select to create a new Zone.

Zone Type

A private DNS zone contains DNS records that are only visible internally within your GCP network(s).

A public zone is visible to the internet.

Zone Name

Identifies a DNS zone for the project. Must be unique in the project.

DNS Name

The DNS name suffix of the zone

DNSSEC

The DNSSEC state of the zone. DNSSEC is a feature of the Domain Name System that authenticates responses to domain name lookups. It does not provide privacy protections for those lookups, but prevents attackers from manipulating or poisoning the responses to DNS requests.

Fill both Zone name and DNS name as per your Domain name. The example screen will be as follows.

Enter Zone Name, DNS Name
Enter Zone Name, DNS Name

Once you click the “Create” button Google will create the following details by default as shown below.

Add Record Set
Add Record Set

Adding "A" Record

Now add a new “A” record in the domain by clicking Add “recordset” button. The following screen will appear.

Creating an A Record
Creating an A Record

Refer below explanations to understand what to select to create a new “A” record.

DNS Name

The subdomain of the DNS zone

Resource Record Type

The resource record type. Here we will use an “A” Address record, which maps hostnames to their IPv4 address.

IPv4 Address

The host’s numeric IP address, in dotted-decimal format. This is the IP address of the Virtual Machine we will bind to the Domain name to resolve.

TTL

The resource record’s time to live, the amount of time it can be cached.

After adding the “A” record you can check the domain resolution by typing in your Odoo server’s domain name in the Browser address bar; which will redirect you to the Odoo ERP login Page.

Congratulation!!!

If you followed these steps correctly to map your domain to your own Virtual Machine, you will see the first page of your respective server.

If you liked this article, then please subscribe to our YouTube Channel for ICT video tutorials. You can also find us on Twitter, Instagram and Facebook.

Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn
Share on pinterest
Pinterest
Computer Software
Exams & Courses
prime

Type of Computer Software

A computer is nothing but pieces of wires and metals without Software. Software comprises the whole set of programs, procedures, and routines associated with the operation of a computer system. Basically, software instructs and tell a computer what to do.

Read More »
i-know-how-it-works-computer-hardware-pexels-cottonbro-4705629
Exams & Courses
prime

Types of Computer Hardware

A computer system consists of software and hardware components that work together. The Input devices, Output devices, and the Central Processing Unit which is also called the CPU are basically considered as computer hardware while the software is a set of instructions that can be stored and run by hardware. In this article we will discuss in detail about hardware components and how they function.

Read More »

Thanks for choosing to engage with us.

Kindly note that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Newsletter Signup

Subscribe to our newsletter below and never miss the latest product or an exclusive offer.

×

Table of Contents