How to Check Nameservers Using System Console in Windows and Linux?

A system console is a command-line tool to manage the operating system and perform administrative tasks. One of the most common uses of a system console is to check the nameservers used by a domain.

When you type into your browser's address bar, your browser sends a request to the nameserver for The nameserver then looks at its database to find out the IP address for When it finds the IP address, it returns that information back to your browser, which displays the website for Google.

The same goes for any other domain you visit, such as Your computer makes requests for just as it did for In order to get these requests answered, your computer uses the IP addresses listed on the nameserver's database.

This tutorial will show you how to use the system console to check the nameservers used by a domain on Windows and Linux.

Steps to check the current nameservers for any domain name from a Linux system:

Host command in Linux.

Host command is used to perform domain lookup operations. By using the host command, you can check the A record, SOA record, NS record, TXT record, and many other records of the domain.

Dig Command in Linux.

A dig command is useful for querying DNS servers for the IP addresses associated with hostnames/domain names. In addition to being able to query DNS servers directly, dig can also query a local cache of DNS server information stored in /etc/hosts. A dig command without any arguments will return information about the current DNS server configuration.

Step 1: Open the terminal in your Linux system.

You can press Ctrl, Alt, and T keys together to open a terminal.

Step 2: Type host -t ns domain-name-com-here to check the current NS record of the domain.

Example: Let's check the domain nameserver by a host command.

Command: host -t ns

Check the nameservers of the domain using the dig command You can also utilize the dig command to check the domain's nameservers.

Syntax: dig ns your-domain-name


Check the nameservers for the domain using the dig command.

dig ns

This command provides detailed information about the nameservers.

Steps to check the current nameservers for any domain name from a Windows system:

By using the nslookup command, we can check the current nameserver of the domain name in the windows system. This command performs DNS lookups and returns the IP address of the requested host. You can specify several options to customize the output.

Syntax: nslookup domainname

Step 1: Press Windows + R keys together on your keyboard. After that, type cmd in the text box and press OK.

Step 2: Type the following command in the command prompt window:

nslookup -type=ns 


1.nslookup -type=ns

2. nslookup -type=ns


In summary, checking nameservers in Windows and Linux is straightforward. Whether using the command prompt or terminal, following the outlined steps allows easy retrieval of nameserver information for a domain.

This functionality aids in managing DNS-related issues, ensuring proper domain configuration, and enhancing overall website performance. Regardless of your console proficiency, these steps are accessible to users of all levels, providing control over domain settings and facilitating seamless functionality within the internet infrastructure.

So, confidently utilize the system console for DNS configuration control, whether on Windows or Linux.

Was this answer helpful?

« Back