While moving a web site, i want to check whois of the domain to find name servers. I run
root@vps73324 [~]# whois customer-domain-name.com -bash: whois: command not found root@vps73324 [~]#
Whois is not installed, we need to install it.
To find which package provide whois command, run
root@vps73324 [~]# yum whatprovides "*/bin/whois" Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile base/filelists_db | 5.9 MB 00:00 extras/filelists_db | 11 kB 00:00 updates/filelists_db | 2.0 MB 00:00 jwhois-4.0-19.el6.x86_64 : Internet whois/nicname client Repo : base Matched from: Filename : /usr/bin/whois jwhois-4.0-19.el6.x86_64 : Internet whois/nicname client Repo : installed Matched from: Filename : /usr/bin/whois root@vps73324 [~]#
We found out the name of the package is jwhois.
Lets install it with
yum install jwhois
root@vps73324 [~]# yum install jwhois Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile base | 3.7 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package jwhois.x86_64 0:4.0-19.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================================================================================= Installing: jwhois x86_64 4.0-19.el6 base 104 k Transaction Summary ============================================================================================================================================================================================================================================= Install 1 Package(s) Total download size: 104 k Installed size: 294 k Is this ok [y/N]: y Downloading Packages: jwhois-4.0-19.el6.x86_64.rpm | 104 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : jwhois-4.0-19.el6.x86_64 1/1 Verifying : jwhois-4.0-19.el6.x86_64 1/1 Installed: jwhois.x86_64 0:4.0-19.el6 Complete! root@vps73324 [~]#