Install BIND's DIG (Domain Information Groper) Program

6/21/2018 1665 Contributors
dns

Purpose:

You wish to install ISC's (BIND) DIG command line tool.

Resolution:

  1. Download the latest version of BIND from https://www.isc.org/downloads/
  2. Extract the downloaded .zip file
  3. Run the BIND installer (e.g. BINDinstall.exe), selecting Tools Only.
    NOTE: You may need to run the installer as Administrator.

  4. Click Install.
    NOTE: If you use the 64-bit version, you will be required to install Microsoft Visual C++ 2012.
  5. 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.
  6. 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.
  7. Go to Start > Run and run sysdm.cpl. This will open the System Properties window.
  8. Click on the Advanced tab > Environment Variables

  9. In the bottom window (System variables), double-click on the "Path" variable to open the Edit window.

  10. Click on the "New" button.
  11. 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.

  12. You should now be able to use DIG from a command line regardless of working directory.