This post will show you how to install Dig (Domain Information Groper) on Windows 8.1. Dig is a DNS (Domain Name System) command that gives you lots more information than NSlookup, but is not installed on Windows by default.
Download from https://www.isc.org/downloads/
Under the BIND heading, click the download button of the “Current-stable” release.
Select your version (32-bit, 64-bit)
Right click on the download, select “Extract All…” and extract the package to your chosen location
I’ve put it in C:\Program Files
Depending on where you extract the files, you may have to provide administrator permission (check the “Do this for all current items” check box and click Continue).
You can now use Dig via the command line by opening a command prompt, changing directory to where you copied the Dig.exe file and running the Dig command.
cd "C:\Program Files\BIND9.10.0-P2.x64"
Advanced: adding Dig to your Path
If you would like to run the Dig command from anywhere in the command prompt (and you probably don’t want to always have to go to the the directory to just run the command) you have to add it to your Path.
Be careful when doing this.. you’ve been warned!
Right click on the windows button (usually bottom right of screen) and select “System”
Or search for “System” and select the result that just says “System”
Select “Advanced system settings”
Select “Environment Variables…”
Under “System variables” select Path then “Edit…”
Go to the end of the “Variable value” input box, enter a semi colon directly after the last variable value (no space) followed by the path where you extracted your files. In my example, I have entered ;C:\Program Files\BIND9.10.0-P2.x64
The end of my variable value text box contains:
Click “OK” to close all the dialogue boxes.
You have to close your Command Prompt and open a new one for the
Path to be updated.
Tip: to check what’s in your path, type “path” at your command prompt.
You should now be able to run the “dig” command from any location in the command prompt.
Type dig -h at the prompt and you should see the help file.
Type dig followed by a domain name to view the information.