Run the Dig command

Edit on GitHub

Dig is a network tool used to look up DNS servers. Below is a step by step guide, depending on the platform you are using:

  1. Windows
  2. Mac OS X
  3. Linux

Windows

Install the Dig tool

  1. Download the stable version of BIND from http://www.isc.org/downloads/.
  2. Extract all the content from the Zip into a separate folder.
  3. Run BINDInstall.exe.
  4. The installer for BIND will ask for a user account. Enter the account with restricted privileges.
  5. Use the Tools Only option to install only the Dig, host, nslookup and nsupdate tools.

Perform a Dig

  1. Open the command window in Windows (+ R).
  2. Type the command cmd.
  3. Click on the OK button to see the DOS emulator window.
  4. At the command prompt, type dig <hostname> +trace.
  5. Press Enter to see the result of the dig.

Mac OS X

  1. Open the command box on Mac OS X (command + space).
  2. Type terminal.
  3. Press Enter to see the Mac OS X terminal.
  4. At the command prompt, type dig <hostname> +trace.
  5. Press Enter to see the result of the dig.

Linux

Install the Dig tool

The command to install the Dig tool in Linux depends on the version that you are using. These are the installation commands for the main versions of Linux:

  • Red Hat/CentOS: sudo yum install bind-utils
  • Ubuntu/Debian: sudo apt-get update -y
#sudo apt-get install dnsutils -y

Perform a Dig

  1. Open the Linux terminal.
  2. At the command prompt, type dig <hostname> +trace.
  3. Press Enter to see the result of the dig.

Didn’t find what you were looking for? Open a support ticket.