You wish to install ISC's (BIND) DIG command line tool.
- Download the latest version of BIND from https://www.isc.org/downloads/
- Extract the downloaded .zip file
- Run the BIND installer (e.g. BINDinstall.exe), selecting Tools Only.
NOTE: You may need to run the installer as Administrator.
- Click Install.
NOTE: If you use the 64-bit version, you will be required to install Microsoft Visual C++ 2012.
- The files will be installed in "Program Files" or "Program Files (x86)" depending on the architecture of the OS and whether the x86 or x64 version of the BIND tools were installed.
- In order to access DIG from the command line without being in the path/bin directory, you will need to make DIG part of your path.
- Go to Start > Run and run sysdm.cpl. This will open the System Properties window.
- Click on the Advanced tab > Environment Variables
- In the bottom window (System variables), double-click on the "Path" variable to open the Edit window.
- Click on the "New" button.
- Add in the appropriate path to the dig.exe program. This will likely be either C:\Program Files\ISC BIND 9\bin or C:\Program Files (x86)\ISC BIND 9\bin.
NOTE: in older operating systems, you may need to manually append the path at the end of the Path variable. Click OK and OK again then exit from the System Properties window.
- You should now be able to use DIG from a command line regardless of working directory.