87

During linux installation I selected "minimal" option:

enter image description here

When I went to run the nslookup command to look up an IP address I got the error message nslookup: command not found as shown in the example below.

$ nslookup www.google.com
bash: nslookup: command not found
Anthony Ananich
  • 7,234
  • 5
  • 31
  • 45

2 Answers2

169

The minimal install likely did not come with the bind-utils package, which I believe contains nslookup.

You can install bind-utils with:

sudo yum install bind-utils

In general, you can search for what package provides a command using the yum provides command:

sudo yum provides '*bin/nslookup'
Franklin Piat
  • 2,963
  • 3
  • 31
  • 37
Steven D
  • 45,310
  • 13
  • 119
  • 114
28

For those using DEBIAN, the package to use is dnsutils and the installation process should be, initiated with:

sudo apt-get install dnsutils -y

According to other users it is the same for Ubuntu

f4d0
  • 381
  • 3
  • 3