How to set up a new DNS zone for your WordPress site

We will show you two different ways to set up a new DNS zone for WordPress, depending on if your site was created and hosted through WordPress.com or you have a hosting with a cPanel. We will show you a step-by-step guide for the two options.

In this example, we assume you bought a domain from Cloudns.net, and you are having one of our DNS plans. If that is not the case, the steps will be similar, but not the same. 

Set up a DNS zone for sites hosted on WordPress.com

1. Go to https://wordpress.com/ and follow the process to create a web site. Register and log in. 

2. Then choose the type of website, from the options, you would like to have.

WordPress.com set up site

3. Depending on the purpose of it, type a corresponding keyword, or a name you like.

4. Go for the free domain. You will be using the other domain name that you have already bought from us. In this example, the domain we will use is ricki.sx 

WordPress.com choose domain name

5. Go to Cloudns.net and log in to your profile. Create a Master DNS Zone file. The Master Zone will let you write and read onto the DNS database. 

To create it you must click on DNS zones and then select Master Zone option. Put just the domain name that you bought (without www. Or http://). 

Now you have created the DNS zone for WordPress, and it is time to put DNS records.

Set up Master DNS zone

6. We will add a CNAME record that will redirect to where your site is hosted. The CNAME is a canonical record. It serves to show that one domain is an alias for another one. 

We will point the blog (blog.ricki.sx) to the domain (myburst.photo.blog) that was given from WordPress.com. 

Create a CNAME record

7. Then we will create a permanent redirect (301 redirect) that will map the ricki.sx to http://blog.ricki.sx and another for the www subdomain (www.ricki.sx) to the same. 

Create a 301 redirect
Create a 301 redirect for www. subdomain

8. The final action, we want to do, is to edit the redirects and add “Redirect with frame.” This will make your visitors see just the redirected domain and not the original. 

301 redirect with frame

Ready.

Check our Premium DNS plans here!

Set up a DNS zone for WordPress site on hosting with cPanel.

1. Go to your hosting account and log in. Write down the IP address. You will need it in step 6.  

cPanel create DNS zone

2. Enter the cPanel and click on the Addon Domains. Addon Domains let you control more than 1 domain for your hosting.

3. Now create an Addon Domain with the new domain name rick.sx and subdomain www. 

Addon Domain cPanel

4. Go to your Cloudns.net and log in. 

5. Create a Master Zone, so later you can add DNS records. 

6. Create two A records. The first to direct from ricki.sx to the IP of the hosting (that one you wrote down back in step 1), and the second to direct from the www.ricki.sx to the same IP.  

Create A record

Ready!

You can find more interesting articles on our blog.

DNS Troubleshooting – tools and commands

Linux host command, troubleshot your DNS

Today we will add one more handy DNS tool – host command on Linux. For the purpose, we will use the latest Linux Mint 19.1 (based on Ubuntu Linux). For those of you who are used to Windows, Linux host command is very similar to nslookup, but a bit more advanced. Host command replaced the nslookup on Linux-based operating systems.  You can use it to check different types of DNS records.

Host command syntax

If you want to see the syntax of the host command and the options that it has, you can simply write “host” and press “Enter.”

host [-aCdlnrsTwv] [-c class] [-N ndots] [-R number] [-t type] [-W time] [-m flag] [-4] [-6] hostname [server]

host command syntax

Host command Options

Here you can see all the available options. Whenever you forgot them, just write “host” in the Terminal.

options for the command

Host command examples

For all the cases we will use Google.com. You can change Google.com with your domain or whichever else domain that you are interested in. We will give you several examples that can be useful for your work.

Search for the IP address of the domain.

host google.com

You will get IPv4 and IPv6 results for the domain.

host google.com

SOA Record

See the Start of Authority records with this command.

host –C google.com

SOA record

Check the name servers of the domain

host –t ns google.com

It will display the name servers of the host. The –t, we use to specify the type of query.

host ns record

Check a particular name server

You want, for example, to review the ns1, so you type:

host google.com ns1.google.com

particular name server

 CNAME record

host –t cname mail.google.com

You can use it to find CNAME record

host cname

MX record

Check the incoming mail server with this query

host –n –t mx google.com

mx record host command

TXT Record

You can also check TXT records

host –t txt google.com

txt host command

Decide the Waiting time for a query

You can use –w to wait forever or –W and time in seconds to decide how long to wait for a reply.

host –T –W 10 google.com

select time for host command

Reverse lookup

You can also check the IP and see the host

host 216.58.194.142

reverse dns lookup with host command

Host command to see all of the DNS records for a domain

host –a google.com

You will get information about various types of records – NS, AAAA, MX, etc.

all records host command

Conclusion:

This was the host command. Now you have one more way to troubleshoot your DNS. If you are interested in DNS diagnostic we recommend you the following articles too: Dig command, Nslookup, Traceroute and Ping. They will expand your knowledge in DNS diagnostic.

Linux dig command

Linux dig command, how to install it and use it

Dig command (Domain Information Groper) is one of the most popular DNS testing tools. You can use it to troubleshoot your DNS and make sure everything works fine. You can try it on Linux, Mac OS, and Windows. For this demonstration, we will use a random old laptop with the latest version of Linux Mint (19.1). Linux Mint is based on Ubuntu Linux. Many old laptops can get a new life as a diagnostic tool.

How to install the dig command on Linux?

First, let’s check if you already have the dig command installed. You can do that by opening the terminal and writing dig -v. If you have it, your computer will show a message similar to this one:

DiG 9.11.3-1ubuntu1.7-Ubuntu.

Many new Linux distros have it pre-installed. In case you don’t have it, you will get the following message:

dig command not found

For Linux Mint, Ubuntu and other Ubuntu-based Linux distributions you can use the following command:

sudo apt install dnsutils

If you are using Fedora or CentOS you should use:

sudo yum install bind-utils

And for Arch Linux users:

sudo pacman -S bind-tools

Understanding the dig command

Let’s start with a simple example to understand it. We will use google.com for the testing. You can try it directly with your domain, by simply replacing google.com with your domain.

dig google.com

dig command

The first line will inform you about the version of the dig command and the second about the global option.

After that, you will get technical information provided by the DNS nameserver. The header shows you what did you do and was it successful. If there is “NOERROR” that there was no problem.
You will see the answer for the EDNS.
Following line shows that by default you are requesting the A record.
You will get the answer for the A record – the correspondent IP address and you will get statistic about the query.

More dig command examples:

dig google.com +short

dig command short

This will show you just the IP address without any additional information.

dig google.com MX

dig command MX record

You can query different types of records like the mail exchanger ones. MX records show the responsible mail server for accepting emails. 

dig google.com SOA

dig command SOA record

SOA – the start of authority, shows the authoritative DNS server.

dig google.com TTL

dig TTL

TTL – time to live. It shows how long the data should be kept. You can read more about TTL HERE

dig google.com +nocomments +noquestion +noauthority +noadditional +nostats

dig only answer query

Only answer query. Use it if you don’t want to receive extra information.

dig google.com ANY +noall +answer

Query all types of DNS records. It will show all the different types of DNS records.

dig -x 172.217.1.142

dig reverse dns lookup

Reverse DNS lookup. You can also do the opposite and check the IP address. The rDNS is used for verification. The result will be a PTR record that verifies the nameserver.

dig @8.8.8.8 +trace google.com

dig trace

Trace DNS Path. It will show the whole route that a DNS query takes. Every hop from a server to server. It can show you where exactly server is not working.

11 dig -p 5300 google.com

dig port check

Specify Port Number. If you have changed the standard port 53 to another for increased security, you can make a dig command to check if it is working correctly.

Now you know the basics of the dig command on Linux. You can start experimenting by yourself.
You can get some additional information about the dig command and a few more options to try in our Wiki.

We can recommend you a few more tools that can be useful for your DNS diagnostic Nslookup, Traceroute and Ping.

Sources used:
Linuxize.com
Tecmint.com

Monitoring your DNS, should you do it?

DNS provides, have excellent security measures to protect your DNS and deliver outstanding performance. The paid plans include DNS Failover & Monitoring, DNSSEC, many nameservers, and even more Anycast DNS locations. With so many safety measures should you be monitoring your DNS or should you just leave it without supervision?monitoring

Continue reading “Monitoring your DNS, should you do it?”

DNS zone file and zone transfer

We have already covered the bases of DNS, so you know what it is and how does it work. This article will help you understand one of the concept inside the DNS – zone transfer. In order to explain it, let’s first see what a zone file is.

zone transfer

Continue reading “DNS zone file and zone transfer”

Can we use free DNS? Free DNS vs. Premium

If you are searching already free DNS, you know what DNS is and for what it serves. The DNS will resolve your domain name. If you have more DNS servers and they are spread around the world, this process will be faster, and it will reduce the load. It will even add an extra level of protection, imagine if one of the servers is down, the users can still find your domain using the rest of the DNS servers.

Free DNS

Free DNS

Different companies offer such a Free DNS plan like us from ClouDNS.net. With this plan, you can manage your DNS. It has many of the features of a professional DNS plan. You can use up to 4 DNS servers and 3 DNS zones. You will have three mail forwards. This plan is popular among people who need Dynamic DNS for their connected devices like CCTV cameras and other security measurements. It is used for personal blogs or parked domains.

Continue reading “Can we use free DNS? Free DNS vs. Premium”

Types of DNS records

Do you know what types of DNS records are out there? If you don’t know them all, don’t worry, we will explain them all in brief. By identifying them, you can easily manage your DNS plan in the best possible way.

DNS records

Continue reading “Types of DNS records”

What is Sender Policy Framework, and how to setup SPF record?

Have you ever received complaining messages from your users about emails sent to them from your email server, without your knowledge? Or maybe the emails you are sending are going directly to the users’ SPAM inbox?

Problems like these can seriously affect your business. Your clients can get phished and send their private information to a fake address which is pretending to be you. This can damage your reputation and can lead to different bans for you.

SPF record - preventing spam

If you have such problems, then you need a Sender Policy Framework (SPF) to prevent spoofing and improve the reliability of your e-mail server. It is a validation system that verifies the legitimacy of your email server.

Continue reading “What is Sender Policy Framework, and how to setup SPF record?”