Geekflare is supported by our audience. We may earn affiliate commissions from buying links on this site.
Share on:

How to Install dig on CentOS 7 and 8?

centos
Invicti Web Application Security Scanner – the only solution that delivers automatic verification of vulnerabilities with Proof-Based Scanning™.

Are you missing your favorite dig tool on CentOS or RHEL 7 and 8?

When you run dig, you will get command not found error.

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

Dig it handy to perform DNS lookup and investigate DNS related issues, right from the terminal. But for some reason, it doesn’t exist on the latest version of CentOS or RHEL.

The good news is, there is a way to get it installed. Run the following.

yum -y install bind-utils

If you are on CentOS 8 then you may also use DNF.

dnf -y install bind-utils

Not only dig but bind-utils also install other essential utilities such as nslookup, host, nsupdate, etc.

Happy digging!

Thanks to our Sponsors
More great readings on Linux
Power Your Business
Some of the tools and services to help your business grow.
  • Invicti uses the Proof-Based Scanning™ to automatically verify the identified vulnerabilities and generate actionable results within just hours.
    Try Invicti
  • Web scraping, residential proxy, proxy manager, web unlocker, search engine crawler, and all you need to collect web data.
    Try Brightdata
  • Semrush is an all-in-one digital marketing solution with more than 50 tools in SEO, social media, and content marketing.
    Try Semrush
  • Intruder is an online vulnerability scanner that finds cyber security weaknesses in your infrastructure, to avoid costly data breaches.
    Try Intruder