Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can't find the dig command on my new CentOS 6 installation. I've tried yum install dig but it say it cannot find the package.

How do I install dig on CentOS 6?

share|improve this question
up vote 36 down vote accepted

The dig command is a part of the BIND utilities so you need to install them. To install the BIND utilities, type the following:

$ yum install bind-utils
share|improve this answer

You have already provided the specific answer, but if you are looking for other executables or files to see what package they are installed with, utilize yum whatprovides *relative/path/to/file*, for example:

$ yum whatprovides '*bin/dig'

32:bind-utils-9.8.2-0.17.rc1.el6_4.6.x86_64 : Utilities for querying DNS name servers
Repo        : base
Matched from:
Filename    : /usr/bin/dig

From man yum:

   provides or whatprovides
          Is  used to find out which package provides some feature or file. Just
          use a specific name or a file-glob-syntax wildcards to list the  pack-
          ages available or installed that provide that feature or file.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.