Share on facebook
Share on twitter

Cloud DNS | How to Transfer your Domain to Google Cloud DNS

Transferring your domain to a different DNS server could overwhelm you if you are not familiar with the configuration. That is why, In this blog I will help you to transfer your Domain to Google Cloud DNS.

How to transfer your Domain to Google Cloud DNS?

To transfer your domain to Google Cloud DNS, You have to point your nameserver to Cloud DNS from your domain register(s) website and also have to migrate your DNS record to Cloud DNS. Before stating Step-by-Step Instructions let me explain what is DNS nameserver and DNS records. If you want to skip the explanation part (click here). 

DNS:

DNS is a system which find the IP Address of a website (domain).

Domain name e.g. www.google.com is just like your smartphone contact name and IP address is like phone number.
Can you call someone with just contact name, of course not you can’t, you need a phone number, just like you need an IP Address to visit a website. There are billions of websites and every hour thousands of new website are created.  The systems which store and manage that huge data of  Domain names and IP addresses is called Domain Name System or DNS.
DNS server:
When a user open your website they get your blog or videos from your web server, just like that you also need a server which always broadcast your domain(s) IP information to your user. The server which store and broadcast  your IP information is called DNS Nameserver.

There are two type of DNS nameservers, Authoritative Nameserver and non-authoritative Nameserver. The nameserver which has your server IP address is called Authoritative Nameserver, example – Google Cloud DNS. And the nameservers which does not know your server IP address but know the name of the server which has the IP address is called non-authoritative nameservers, example- Root nameservers, TLD nameservers etc.

As you can see in the Image, User send a query to the DNS root Nameserver, root server replay it with TLD nameserver IP address, After that user again send a query to the DNS tld nameserver and tld server replay with it Google Cloud DNS server(S) IP. Finally, user send a query to the Google cloud DNS  nameserver and get your server IP address.

Commonly used DNS Records

DNS servers create a DNS record to provide important information about a domain or hostname, particularly its current IP address. The most common DNS record types are:

  • Address Mapping record (A Record)—also known as a DNS host record, stores a hostname and its corresponding IPv4 address.
  • IP Version 6 Address record (AAAA Record)—stores a hostname and its corresponding IPv6 address.
  • Canonical Name record (CNAME Record)—can be used to alias a hostname to another hostname. When a DNS client requests a record that contains a CNAME, which points to another hostname, the DNS resolution process is repeated with the new hostname.
  • Mail exchanger record (MX Record)—specifies an SMTP email server for the domain, used to route outgoing emails to an email server.
  • Name Server records (NS Record)—specifies that a DNS Zone, such as “example.com” is delegated to a specific Authoritative Name Server, and provides the address of the name server.
  • Text Record (TXT Record)—typically carries machine-readable data such as opportunistic encryption, sender policy framework, DKIM, DMARC, etc.

Step 1: Create Google Cloud DNS Zone

Click on the hamburger menu in the upper left-hand corner of your Google Cloud Platform dashboard. After that navigate to NETWORKING >> NETWORK SERVICES >> CLOUD DNS.

After that click on “Create zone”.

After that select “Public” from Zone type field. Then type a Zone name. Place your Domain name on the DNS Name field. Next click on Create button.

Those are the nameservers records of Cloud DNS which you have to place in the nameserver field of your domain registrar website. Copy these NS records one by one.

Step 2: Find Your DNS zone Records

In this step we are going to find your current DNS zone records and In the next step we are going to transfer it to google cloud DNS. There are four possibilities,

  1. You have a working website and using your domain registrar default or basic DNS.
  2. Using Cpanel
  3. Using Cloudflare CDN.
  4. Using a Google Cloud VM Instances.
  5. I have no Idea what you are saying.

1. Using domain registrar default DNS

If you are using your domain registrar default DNS then logging to your domain registrar website. After that navigate to DNS section and create exact same zone records on Google cloud DNS.

Example:

You can view the records by going to your GoDaddy(s) DNS manage section.  

If your domain registrar is Namecheap then You can view your DNS records by navigate to Domain list >> Advance DNS.

2. Using Cpanel

Login to your cPanel and navigate to DOMAINS >> Zone Editor >> Manage. After that, Create  Exact same DNS records on Cloud DNS.

3. Using Cloudflare CDN:

Logging to your Cloudflare Account and goto your DNS section and create exact same DNS records on Cloud DNS.

4. Using  a Google cloud vm instances.

Log in to your Google cloud account and navigate to Compute engine >> VM instances. After that, Create an “A” record on Google Cloud DNS using your VM instances External IP address.

5. I have no idea what you’re saying.

If don’t understand or non of the above example is working for you then just create A record using your server IP Address.

Step 2: Migrating DNS zone Records

In the previous steps you learn how to find your DNS record. Now In this step we are transferring those records by creating an exact copy record on google cloud DNS,

Now  click on the Add record set on Google cloud DNS  and one by one migrate your DNS records.

Transfer A records

Dns Name:Choose the host for the domain/subdomain that you want to point to your Google Cloud. In this example, we have chosen a naked domain(siteyaar.com) so Under Host, type @ if you’re going to point a domain (such as mysite.com).
Resource Record Type:Choose A.
TTL:TTL value tells your browser how long a record should be stored in cached before a new copy of the record must be retrieved from DNS. Select custom or use the default one.
Ipv4 Address: Type your server ip address or type the Ip address from you privious dns records.
Click the Create button to save the record.

Transfer CNAME records

Dns Name: Generally we type @ or yoursite.com in this field.
Resource Record Type:Choose CNAME.
TTL:TTL value tells your browser how long a record should be stored in cached before a new copy of the record must be retrieved from DNS. Select custom or use the default one.
Canonical name: In this section type your subdomain name. Example- www.yoursite.com, fun.yoursite.com etc.
Click the Create button to save the record.

Transfer MX records

Dns Name: Copy from your privious records.
Resource Record Type:Choose Mx.
TTL:TTL value tells your browser how long a record should be stored in cached before a new copy of the record must be retrieved from DNS. Select custom or use the default one.
Preference and mail server:[Type your preference number] give a space [your mail server address]
Click the Create button to save the record.

Transfer TXT records

Dns Name: Type your domain or subdomain in here.
Resource Record Type:Choose TXT.
TTL:TTL value tells your browser how long a record should be stored in cached before a new copy of the record must be retrieved from DNS. Select custom or use the default one.
TXT data: Type your text value
Click the Create button to save the record.

Step 2: Point Nameserver to Cloud DNS

As you already know, that your domain registrar website is connected to the TLD Nameserver. When you  Change the Nameserver records from your domain registrar site, TLD server also get updated, BUT it can take up to 48 hours.

For shake of this tutorial we are showing you how to change  NS records of GoDaddy and Namecheap website. If your domain registrar is different from those two, then place a comment or search it on Google.

Pointing GoDaddy domain to Cloud DNS

Log in to your GoDaddy account, then navigate to Home >> Manage My  Products.

Now click the DNS button.

Now scroll down to Nameservers section, and click on the Change button.

After that, Select “Custom” from the “Choose your new nameserver type” section. Then, In the Nameserver field place the NS records which you copied earlier.

Pointing Namecheap domain to Cloud DNS

Login to you Namecheap account. Then, navigate to Domain list >> Domain. Next Select Custom DNS from Nameserver section.

Select custom DNS and place the nameserver records which you copied from Google Cloud DNS.

Step 4: Verifying DNS propagation

Once you have added/updated the DNS records, it can take time up to 24 hours for the changes to be effective across the internet.

You can check the status of your domain(s) propagation by using some available online tool such as dnschecker.org 

 

Now it is your time!

I tried my best to provide you a complete tutorial on  How to transfer your domain to Google Cloud DNS. I hope you liked it.

If you need help just drop a comment.

If you benefited from this tutorial, and would like to support my work, please like my Facebook page.

Thanks,

Leave a Comment

Your email address will not be published. Required fields are marked *