When you run dig, you will get command not found error. 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. If you are on CentOS 8 then you may also use DNF. Not only dig but bind-utils also install other essential utilities such as nslookup, host, nsupdate, etc. Happy digging!

How to Install dig on CentOS 7 and 8  - 42How to Install dig on CentOS 7 and 8  - 88How to Install dig on CentOS 7 and 8  - 61How to Install dig on CentOS 7 and 8  - 92How to Install dig on CentOS 7 and 8  - 15How to Install dig on CentOS 7 and 8  - 18How to Install dig on CentOS 7 and 8  - 2How to Install dig on CentOS 7 and 8  - 77How to Install dig on CentOS 7 and 8  - 71How to Install dig on CentOS 7 and 8  - 90How to Install dig on CentOS 7 and 8  - 45How to Install dig on CentOS 7 and 8  - 27How to Install dig on CentOS 7 and 8  - 97How to Install dig on CentOS 7 and 8  - 67How to Install dig on CentOS 7 and 8  - 68How to Install dig on CentOS 7 and 8  - 7How to Install dig on CentOS 7 and 8  - 93How to Install dig on CentOS 7 and 8  - 65How to Install dig on CentOS 7 and 8  - 7How to Install dig on CentOS 7 and 8  - 82How to Install dig on CentOS 7 and 8  - 52How to Install dig on CentOS 7 and 8  - 25How to Install dig on CentOS 7 and 8  - 3