
Let's see a couple of examples.įind IP address of a website or domain (A record): dig Aįind IPv6 address of a domain (AAAA record): dig AAAA A for address records, MX for MX records). The basic usage of the dig command is to specify the domain name you want to look up and the type of record you want to query (e.g. Edit the PATH variable under the System variables.Ĭlick the New button and paste the path C:\Program Files\ISC BIND 9\bin.Īnd that is all we need to do. Go to Advanced system settings > Environment Variables. Right-click on This PC and select Properties. We need to add the bin directory ( C:\Program Files\ISC BIND 9\bin), which contains the dig.exe file, to the Windows PATH variable. If successful, you will see the message: "BIND installation completed successfully". Then right-click on the BINDInsall and choose run as administrator from the contextual menu.Ĭheck the Tools only checkbox and click the Install button. Install Bind ToolsĪfter the download has finished, extract the ZIP file. Open a web browser, navigate to and download the latest version of BIND.įor Windows 10, we need to download the 64bit zip file. The following section provides detailed instructions on how to do it.

If for some reason, you don't like to use the Chocolatey, you can still install DIG by manually downloading the bind tool package. Open a PowerShell console and execute the following command to install Chocolatey: Set-ExecutionPolicy Bypass -Scope Process -Force ::SecurityProtocol = ::SecurityProtocol -bor 3072 iex ((New-Object ).DownloadString(''))Īfter that, run the following command to install the bind-toolsonly package: choco install -y bind-toolsonlyĪnd that is it! You can now run the dig command from both CMD and PowerShell. The quickest way to install DIG on Windows 11/10 is to use the Chocolatey package manager.

Unfortunately, it isn’t shipped with Windows 10, but we can get a version of dig that runs on Windows 10/11 by installing BIND tools.

Dig is a more flexible and better DNS tool than the Windows Nslookup tool. Domain Information Groper, commonly known as dig command, is a DNS lookup utility that is very popular on Linux.
