Download Dig For Windows 7

Installing dig on windows 7 Installing dig on Windows 7 is as simple as going to ISC’s BIND siteand downloading the Windows distribution. Unzip into your directory of choice. When running dig.exefor the first time, you may get the following error message. Download 'KohaforWindows.zip' from above 'Download Koha for Windows' link. Extract the downloaded zip folder into a drive (e.g. Go to usr folder and run 'StartMysqlServer.bat' as administrator. Now Run 'StartServer.bat' as administrator. A black window will open and minimize this window.

Download dig command tool for windows and perform advanced DNS queries using dig command on windows. The dig command which comes as a part of Linux is very useful for performing DNS lookups on domain names and provides detailed information like TTL and class type. It is now possible to use the dig command on windows also. I’ve included the dig package for windows with this post and also step-by-step instructions on how to use it.

Step 1:- Download dig for windows

The files required for dig command is available with BIND DNS software you can download the software from their official website unzip it and separate the files dig.exe, libbind9.dll, liblwres.dll, libisccfg.dll, libdns.dll, libisc.dll, libxml2.dll. For your convenience I’ve attached a zip file containing these files.

Download dig command for windows and extract the files to your hard disk.

Download

Step 2:- Paste the files inside System32 folder

Dig Software For Windows

You’ll now have a total of 7 files, one exe file and six dll files. Paste all these files inside C:WindowsSystem32. Replace C: drive with the partition where windows is installed. Do NOT create any folder inside System32 just paste the files inside it.

Step 3:- Text the dig command from the command-line

Press [windows key] + R or Start -> Run, type cmd and hit enter to fire up the windows command line tool. Type dig [domain name] -t [record] example dig example.com -t ns and you’ll see the following output

For a complete list of parameters type dig -h

Related posts:

Intro
Dig is a really useful networking tool. I use it several times a day. But always on Linux where it’s usually built-in. On Raspberry Pi’s raspbian you can install it with a simple apt-get install dnsutils. Then I learned it wasn’t hard at all to install on Windows, especially as a fairly minimalist installation that just puts files on your PC and makes no changes to the Registry, which is all you really need for light use.

The details
Go to http://www.isc.org/downloads/. Expand BIND.
Click download button for the current stable release.
Pick the win-64-bit link (because chances are you’re running Windows 64 bit these days) and wait for download to complete.
Open up zip file.
Unzip or extract all files to (this is my suggestion) c:appsbind.

To run it
Open a command window. Probably easiest way is hold down Windows key + r and type in cmd. In CMD window simply type appsbinddig to run dig like you do on Linux.

Example commands
Example 1, Resolve address for google.com

C:> appsbinddns google.com

This gives all kinds of useful information – what your default DNS server is (at the bottom – mine is 192.168.2.1), how long the query took *this one: 41 msec), whether the answer is authoritative or not (no AA flag here, so this is not an authoritative answer), as well as the answer to the question posed.

Example 2, Resolve nameserver records for the domain amazon.com using Google’s DNS server 8.8.8.8 over TCP from our local IP address of 192.168.2.3

We started out slow, but this example throws the kitchen sink at you to show the power of dig!

C:> appsbinddig +tcp -b 192.168.2.3 ns amazon.com @8.8.8.8Crash bandicoot n-sane trilogy game.

The only problem is that I don’t think the TCP option actually worked – I gotta run wireshark to verify. On Linux it definitely works! Not sure what’s wrong with windows. But the other options are working as designed.

OK, wireshark install is failing, but I ran tcpdump on a DNS server I run and confirmed that indeed the +tcp option is working forcing dig to use TCP communication for those queries.

Conclusion
We’ve demonstrated a low-impact way to install dig for Windows and shown some examples of using it.

References and related

Current BIND link from ISC: https://downloads.isc.org/isc/bind9/9.16.8/BIND9.16.8.x64.zip

Download Dig For Windows 7 64-bit

Or…you get get dig through a Cygwin installation. I’ve written about Cygwin here: Cygwin. Or just go to cygwin.com.