At some point, you may want to check which DNS server is assigned to your domain or the IP address it resolves to.
Whether your DNS is pointing to cdmon or to any other DNS server, you can find out which one is assigned in each case.
There are several websites that can provide this information, but in this guide we will show you how to obtain this public information directly from your device.
The method we will use is the Dig command.
Dig is a free tool that can be used to query servers for any internet address.
It allows you to obtain information about host addresses, mail exchangers, servers, and related data.
How to use Dig on Windows 10 or 11
The Dig command is very easy to use. It is IMPORTANT to note that Dig is not installed by default and must be installed manually. Below we explain step by step how to download and install it.
To find the IP assigned to any domain, simply type: dig domainname.com
We used Google’s domain as an example:
If you want to know the DNS servers of that domain, type: dig domainname.com ns and you will see the list of DNS servers.
How to download Dig on Windows 10 or 11
This command is typically used in Linux systems and comes pre-installed, but in Windows it must be installed manually. Here’s how to do it step by step:
To use it on Windows 10 or 11, you need to install an additional file. It is not included by default, but you can easily install it using a free application.
You need to download the file from the ISC (Internet Systems Consortium) website. Once there, go to the BIND 9 section.
Download the latest version labeled Current-Stable, as shown below:
After downloading the file, extract all contents into a folder.
Run (as administrator) the file BINDInstall.exe. Note that Windows Defender (or your antivirus) may warn you, so you must accept the risk and continue with the installation.
During installation, you will need to choose a path, username, and password. You can leave the default configuration as shown:
You are now almost ready to use Dig. You just need to add BIND 9 to the Windows PATH.
What is the Windows PATH? The PATH is a list of directories that the operating system can access easily to run programs.
To add the program, search for “Path” in the Windows Start menu and open Edit the system environment variables:
In the System Properties window, click on Environment Variables:
Find the variable called Path and click Edit:
Finally, click New and add the installation path where you installed BIND.
BIND 9 will now be added to your Windows PATH and you will be able to use the Dig command from the CMD terminal.