DNS

How to Check Domain’s Nameservers

Introduction

One of the most common issues for websites to be unavailable are their incorrect nameservers or other DNS records. In this tutorial, you will learn how to check if the domain’s nameservers are pointing correctly towards your hosting service while only using your computer’s operating system’s integrated consoles.

What you’ll need

Before you begin this guide you’ll need the following:

  • Active hosting service and registered domain name
  • Access to command shell (Windows), console terminal (Linux) or MacOS terminal
  • Working Internet connection

Step 1 — Finding out your host’s nameservers.

This information can usually be found in your hosting account’s control interface. Look for the options such as Nameservers, DNS Zone Records, DNS, Update Nameservers, Account Details and so on.

This is a sample interface where nameservers can be found. Keep in mind that all hosting providers have different members area interfaces and yours may look different.

Sample members area

If you are unable to find the correct DNS records you should use, try contacting your hosting provider’s customer support.

Step 2 — Opening up your command shell in Windows, Linux or MacOS and acquiring domain’s current nameservers

For Windows:

On your keyboard try to find Windows logo key (it is located between left CTRL and ALT keys). Now press it together with R key.

New window Run should show up.

Sample Run Window

In this new window type cmd and click OK just the way it is shown in the picture above.

Now you should see a black command shell window where we will perform the remaining actions of this task:

Sample CMD Window

In the command shell window type the following command:

nslookup -type=ns yourdomain.tld where yourdomain.tld is your domain name.

Similar information will show up:

CMD Window with nslookup

I have highlighted the area where your domain’s nameservers will be specified.

For Linux:

In order to call out your computer’s terminal window in Linux, press the following keys simultaneously:

CTRL + ALT + T

The following terminal window will show up:

Example terminal window.

In this newly opened terminal window enter the following command:

dig ns yourdomain.tld where yourdomain.tld is your domain name.

Similar information will show up:

Dig NS command in terminal.

Bottom highlighted area shows where your domain’s current nameservers will be displayed.

For MacOS:

Firstly, you will need to open MacOS Launchpad. This can be done by simply clicking on F4 key.

In Launchpad’s search field enter terminal and push Enter.

Mac Launchpad

Similar console terminal window will show up:

Mac Terminal

Now enter the following command:

dig ns yourdomain.tld where yourdomain.tld is your domain name.

All the required information will be shown afterwards:

Dig ns Mac

Bottom highlighted area shows where your domain’s current nameservers will be displayed.

Step 3 — Comparing Nameservers

Since you now know your current nameservers, you can compare them to the ones given to you by the hosting company. If they are the same, the domain is pointing to your hosting account correctly.

If they are not the same, you will need to contact the company where the domain was registered and provide them with your host’s nameservers (see step 1).

Conclusion

In this tutorial, we have learned to analyze our domain’s nameservers without using any external browsing tools. Using this knowledge you will no longer need to wonder whether or not your domain is pointing correctly towards your hosting account.

Add Comment

Click here to post a comment

Join thousands of subscribers worldwide

and get awesome deals & the newest tutorials to your email

Please wait...

Thank you for sign up!

More in DNS
How to Perform Traceroute and Ping Using Windows

Close