Installing nslookup in Ubuntu

Today i tried to run nslookup on a Ubuntu VPS

root@cloud1:~# nslookup
-bash: nslookup: command not found

It was Ubuntu 12.10

root@cloud1:~# cat /etc/*issue
Ubuntu 12.10 \n \l


To find which package provides nslookup command, use apt-cache search

root@cloud1:~# apt-cache search nslookup
dnsutils - Clients provided with BIND
libnet-nslookup-perl - simple DNS lookup module for perl

We found 2 packages that is related to nslookup. First one is what we need. Second one is related to Perl, that is for Perl Programmer.

So we install dnsutils

apt-get install dnsutils

Posted in Ubuntu