How to install dig on ubuntu?

September 1, 2019 81 views
Linux Basics Linux Commands Ubuntu

Hi, when I try to use the dig command I get this error:

dig: command not found

I tried to install it with:

apt update
apt install dig

But it says that the package was not found.

I’m not sure what I’m missing, any help will be appreciated.

1 Answer
bobbyiliev MOD September 1, 2019
Accepted Answer

Hello,

Yes, you need to install another package which contains the dig command called dnsutils.

To do that just run:

apt update
apt install dnsutils

Hope that this helps!
Regards,
Bobby

Have another answer? Share your knowledge.