In this tutorial, How to install
nslookup on Linux, you need to install the
dnsutils package, which contains the nslookup utility. The process for installing the package can vary depending on the Linux distribution you are using. Here are the commands for some popular distributions:
Table of Contents
Install nslookup on Linux
Install nslookup for Centos
[vagrant@DevopsRoles ~]$ sudo yum install bind-utils
Install nslookup for Ubuntu
Use apt-cache to search the package for nslookup command.
[vagrant@DevopsRoles ~]$ apt-cache search nslookup
The result found 2 packages that are related to nslookup.
dnsutils - Clients provided with BIND libnet-nslookup-perl - simple DNS lookup module for perl
so install nslookup
[vagrant@DevopsRoles ~]$ sudo apt-get install dnsutils
Once the installation is complete, you can use
nslookup from the command line.
[vagrant@DevopsRoles ~]$ nslookup x.x.x.x
Through the article, You have to install nslookup package on Linux System as above. I hope will this your helpful. Thank you for reading the DevopsRoles page!