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
bind-utils-9.9.4-18.el7_1.5.x86_64

Files/commands provided by bind-utils
rpm -ql bind-utils
/etc/trusted-key.key
/usr/bin/dig
/usr/bin/host
/usr/bin/nslookup
/usr/bin/nsupdate
/usr/share/man/man1/dig.1.gz
/usr/share/man/man1/host.1.gz
/usr/share/man/man1/nslookup.1.gz
/usr/share/man/man1/nsupdate.1.gz

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s