Install dig, nslookup in CentOS

You can’t “yum install -y dig” to install dig because dig is not a package. The package that provides dig, nslookup and host commands is bind-utils.

Have you ever needed to install these commands? Probably not unless you have a minimal install where even some basic tools are missing. This is great because it forces you to learn.

Which package provides dig?
rpm -qf which dig

Files/commands provided by bind-utils
rpm -ql bind-utils


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s