nslookup: command not found error on DebianPosted in Linux/Unix/BSD -
If you need to use nslookup on a Debian server and you're getting an "nslookup: command not found" then use apt-get to install dnsutils.
You'll know if dnsutils & nslookup are not installed if you try a dns lookup and get this error:
$ nslookup www.example.com -bash: nslookup: command not found
Install the dnsutils package to resolve the error and lookup the domain:
$ apt-get install dnsutils
And now it works
$ nslookup www.example.com Server: 18.104.22.168 Address: 22.214.171.124#53 Non-authoritative answer: Name: www.example.com Address: 126.96.36.199