Sun

How to check DNS records of a domain

  1. Home
  2. Knowledge Base
  3. Domains
  4. How to check DNS records of a domain

How to check DNS records of a domain

There are many reasons why you might need to check your domain DNS records which are propagated on the internet. For instance, your website is not available (it might be that DNS records are incorrect) or you need to check which DNS records are shown on the internet.

Domain Name System (DNS) is used to point an incoming website domain toward the IP address of the server. It means that when you open a website, the DNS records fetch the IP address of the server (there is the domain pointed) and serve the website.

So in this guide, I will show how to check your current domain DNS records using provided commands and online tools.

Get a free domain with an annual web hosting package!

Checking DNS records using the command line

The most efficient way to check DNS records of the domain is to use a terminal with the command nslookup. This command will run on almost all operating systems (Windows, Linux, and macOS). The command nslookup shows all DNS records of the domain and below will be provided various nslookup command for the different DNS record types to check using the command line.

For the demonstration, I will use our domain name ‘hostens.com’. When you will open the terminal window, type the following commands, just do not miss to replace ‘hostens.com’ with your domain name.

Lookup A record:

nslookup -type=A hostens.com

Example output:

nslookup hostens.com

Example output:

Lookup NS record:

nslookup -type=NS hostens.com

Example output:

Lookup MX record:

nslookup -type=MX hostens.com

Lookup CNAME record:

nslookup -type=CNAME hostens.com

Lookup TXT record:

nslookup -type=TXT hostens.com

Other DNS records you can check by replacing the DNS record type, for example, nslookup -type=SOA domainname.

Also, there are other commands which you can use to check DNS records, for example, ping or host. The ping command shows domain A record – where the domain is pointed.

The host command runs on Linux and shows the IP address of a particular domain name or if you want to find out the domain name of a particular IP address.

nslookup and host commands output as an example:

Checking domain DNS records using online tools

If you do not have the ability to check DNS records using the command line, you can check records using online trusted tools. Down below are provided some online tools which you can use.

1. DNSRecords

The online tool where you can enter the domain name and all the domain DNS records will be provided – is the website fully propagated or not worldwide.

2. DNSChecker.org

This tool not only shows all DNS records for the domain but also shows how those records are propagated on the internet.

3. LeafDNS

This online tool shows domain DNS records. Also, this tool provides warnings and failures of the DNS records. So this leafdns tool will check if your DNS records are correct or no. It’s quite helpful, for example, when you create custom nameservers for the domain.

Get a free domain with an annual web hosting package!

Was this article helpful?

Related Articles