How to Install dig on CentOS 7 and 8?

Lacking your favourite dig device on CentOS or RHEL 7 and eight?

Once you run digyou get the command not discovered error.

[root@gf-lab geekflare-trends]# dig
-bash: dig: command not discovered
[root@gf-lab geekflare-trends]#

Helpful to carry out DNS lookups and examine DNS associated points proper from the terminal. However for some cause it does not exist within the newest model of CentOS or RHEL.

The excellent news is that there’s a strategy to get it put in. Do the next.

yum -y set up bind-utils

In case you are utilizing CentOS 8, you may as well use DNF.

dnf -y set up bind-utils

Not solely dig however bind-utils additionally set up different important utilities like nslookup, host, nsupdate, and so on.

Have enjoyable digging!

Rate this post
Leave a Comment