Share on facebook
Share on twitter

Setting up Google Cloud DNS for your Godaddy domain

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

In the first part we’ll configure Google Cloud DNS for your GoDaddy domain, after that we’ll point your nameserver to Cloud DNS.

Prerequisites

  1.  A domain name, registered from GoDaddy.
  2. A working  web server, It could be your Google Cloud  VM Instances or any other web server which hosted by different service provider (such as – cpanel, aws web server etc). As long, you have a server IP address it does not matter. If you want to install wordpress on Google Cloud, check out this blog.
  3. And an internet connection!! 

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: Creating 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: Finding Godaddy domian(s) 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 GoDaddy(s) default DNS.
  2. Using a Google Cloud VM Instances.
  3. Using Cpanel as hosting platform and want to use Cloud DNS.
  4. Using Cloudflare CDN.

1. Using GoDaddy(s) default DNS

If you are not using Cloudflare CDN or Cpanel, and still can access your website through your domain then Its  highly possible that you’re using your GoDaddy(s) default DNS. There is another way of verifying this, open your GoDaddy domain (s) DNS Manage section and check  for Records. If Records section is blank that mean you are not using it.

Go to your GoDaddy website and login to your GoDaddy account by clicking the ‘Sing In’ Button. Next, click on the home button and navigate to ‘Manage My Products’.

Next Open the DNS Manager by clicking the ‘DNS’ button.

​Now, by following the next step, create exact same zone records on Google cloud DNS.​

4. Using  Google cloud VM instances.

Log in to your Google cloud account and navigate to Compute engine >> VM instances. After that, copy your VM(s) external IP address.

Next, by following the next step, Create “A” record on Google Cloud DNS using your VM instances External IP address.

It is also possible to connect to your GoDaddy(s) domain to Your Google Cloud VM Instances without using Cloud DNS, check out this blog for more information.

3. Using Cpanel

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

4. Using Cloudflare CDN:

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

Step 3: Migrating DNS zone Records to Cloud DNS

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.

Need more help? Then check the Example.

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.

 

Examples:

Creating A record for naked domain. (mysite.com)

  1. Dns Name:Leave it blank. Normally we type @ to create a naked domain(s) A record, but in Cloud DNS it is Blank.
  2. Resource Record Type:Choose A.
  3. 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.
  4. Ipv4 Address: Type your server ip address or type the Ip address from you privious dns records. Here we typed 35.225.167.62 which is our Google Cloud VM external IP address.
  5. Click the Create button to save the record.

Creating A record for subdomain domain. (www.mysite.com)

  1. Dns Name:Type www to create a www.mysite.com subdomain.
  2. Resource Record Type:Choose A.
  3. 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.
  4. Ipv4 Address: Type your server ip address or type the Ip address from you privious dns records. Here we typed 35.225.167.62 which is our Google Cloud VM external IP address.
  5. Click the Create button to save the record.

Creating CNAME record for subdomain domain. (www.mysite.com)

  1. Dns Name:Leave it blank. Normally we type @ to create a naked domain(s) A record, but in Cloud DNS it is Blank.
  2. Resource Record Type:Choose A.
  3. 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.
  4. Canonical name: Here we type www.mysite.com to create a subdomain using CName.
  5. Click the Create button to save the record.

Step 4: 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.

Step 5: 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 Setting up Google Cloud DNS for your GoDaddy domain. 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 *