Nslookup (name server lookup): a tool used to query Internet domain name information or diagnose DNS server problems. Let's take a look at the installation method. CentOS 6.xis installed in the new VPS, and the nslookup command is not installed by default. However, it is impossible to directly use yum install nslookup because nslookup is not an independent package.
In this case, you need to use yum whatprovides to check which installation package of nslookup is in.
Yum whatprovides */nslookup
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* Base: ftp.hosteurope.de
* Epel: ftp.cuhk.edu.hk
* Extras: ftp.hosteurope.de
* Remi: pai.innosol.asia
* Remi-php70: developer.innosol.asia
* Remi-safe: 2.16.innosol.asia
* Updates: ftp.hosteurope.de
Zsh-4.3.11-4.el6.centos.x86_64: A powerful interactive shell
Repo: base
Matched from:
Filename:/usr/share/zsh/4.3.11/functions/nslookup
Bind-utils-9.8.2-0.37.rc1.el6.x86_64: Utilities for querying DNS name servers
Repo: base
Matched from:
Filename:/usr/bin/nslookup
As shown above, the nslookup file is found in both the zsh and bind-utils packages. Obviously, we want to install bind-utils.
Yum install bind-utils