Fix "dig: command not found" on Debian 9


A default Debian 9 installation doesn’t have the dig command available. If you try to use it:

dig +short example.com

You’ll be greeted with this error:

bash: dig: command not found

The solution for this is simple:

sudo apt install dnsutils

And it’s done!

dig +short example.com
93.184.216.34