• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

How to install whois client in CentOS and Red Hat

October 1, 2013 by Sharad Chhetri 7 Comments

Whois is a protocol which runs on port no. 43 and it is also act as query. Whois helps to get the information regarding internet resources like domain name and IP Address network blocks.
Mostly it is widely used for getting information about domain like owner of domain name,its registrar,Date of expiry etc.

Install whois on CentOS 8 and RHEL 8

To install whois in CentOS 8 or RHEL 8 use the given below command.

sudo dnf install whois

Given below is the output of installing whois in our system.

[sharad@localhost ~]$ sudo dnf install whois
CentOS-8 - AppStream                                                                            260 kB/s | 5.8 MB     00:22    
CentOS-8 - Base                                                                                  26 kB/s | 2.2 MB     01:27    
CentOS-8 - Extras                                                                               1.8 kB/s | 6.7 kB     00:03    
Dependencies resolved.
================================================================================================================================
 Package                       Arch                       Version                           Repository                     Size
================================================================================================================================
Installing:
 whois                         x86_64                     5.5.1-2.el8                       AppStream                      78 k
Installing dependencies:
 whois-nls                     noarch                     5.5.1-2.el8                       AppStream                      38 k

Transaction Summary
================================================================================================================================
Install  2 Packages

Total download size: 116 k
Installed size: 341 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): whois-nls-5.5.1-2.el8.noarch.rpm                                                          17 kB/s |  38 kB     00:02    
(2/2): whois-5.5.1-2.el8.x86_64.rpm                                                             9.1 kB/s |  78 kB     00:08    
--------------------------------------------------------------------------------------------------------------------------------
Total                                                                                            12 kB/s | 116 kB     00:09     
warning: /var/cache/dnf/AppStream-fd636d66ef3d60cc/packages/whois-5.5.1-2.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
CentOS-8 - AppStream                                                                            321 kB/s | 1.6 kB     00:00    
Importing GPG key 0x8483C65D:
 Userid     : "CentOS (CentOS Official Signing Key) "
 Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                        1/1 
  Installing       : whois-nls-5.5.1-2.el8.noarch                                                                           1/2 
  Installing       : whois-5.5.1-2.el8.x86_64                                                                               2/2 
  Running scriptlet: whois-5.5.1-2.el8.x86_64                                                                               2/2 
  Verifying        : whois-5.5.1-2.el8.x86_64                                                                               1/2 
  Verifying        : whois-nls-5.5.1-2.el8.noarch                                                                           2/2 

Installed:
  whois-5.5.1-2.el8.x86_64                                     whois-nls-5.5.1-2.el8.noarch                                    

Complete!
[sharad@localhost ~]$ 

Now you can use the whois command in system

whois domainname eg. whois example.com
whois ip-address eg. whois 93.184.216.119

Note: Port no. 43 should be opened for connecting to whois database.

Install whois on CentOS 7/6 and Red Hat 7/6

In CentOS 7/6 and RHEL 7/6 , we will install the jwhois package which will provide the whois command.

sudo yum install jwhois

Know about whois: http://en.wikipedia.org/wiki/Whois

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. How to Disable selinux in Red Hat or CentOS
  2. man command not found in CentOS and Red Hat
  3. How to install and configure nagios nrpe in CentOS and Red Hat
  4. How to install apache webserver in CentOS and Red Hat
  5. Install MySQL Server 5.6 in CentOS 6.x and Red Hat 6.x Linux
  6. How to add/install Ubuntu fonts in CentOS/Red Hat Linux
  7. Install Ubuntu font family for individual user in CentOS/Red Hat
  8. scp command not found in CentOS and Red Hat
  9. mail command not found in Red Hat CentOS Ubuntu Debian
  10. make command not found in linux CentOS Red Hat ubuntu Debian

Filed Under: Linux Tagged With: CentOS, Red Hat, whois

Reader Interactions

Comments

  1. Karel says

    February 10, 2015 at 10:50 pm

    Also open port 43 for whois.

    Reply
  2. Karel says

    February 10, 2015 at 10:47 pm

    Try: yum install whois
    jwhois is no longer available in standard repo of centos7 but whois is.

    Reply
    • sharad chhetri says

      February 11, 2015 at 2:39 am

      We will check it and update the new post for CentOS 7.

      Regards
      Sharad

      Reply
  3. Janis says

    December 10, 2014 at 3:54 pm

    [root@web ~]# yum install jwhois
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: mirror.1000mbps.com
    * extras: mirror.1000mbps.com
    * updates: mirror.widexs.nl
    No package jwhois available.
    Error: Nothing to do

    Reply
    • sharad chhetri says

      December 10, 2014 at 6:39 pm

      Try installing EPEL repo. For CentOS 7 : https://sharadchhetri.com/2014/09/07/install-epel-repo-centos-7-rhel-7/
      Let me know which O.S version you are using.

      The package is available in EPEL repo

      Reagrds
      Sharad

      Reply
  4. Wellington Torrejais da Silva says

    June 25, 2014 at 6:57 pm

    Thanks!!!

    Reply
    • sharad chhetri says

      June 26, 2014 at 12:57 am

      Most Welcome Wellington

      Thanks and Regards
      Sharad
      sharadchhetri.com

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

WordPress host IP changed not able to open wp-admin and site page looks scattered

Non interactive ,without typing password do ssh to Server : By sshpass

Keep logs of user after sudo su – : Secondary Logging

How to page scroll up/down in Linux terminal

send email after mysql backup through bash script in simple way

Install libjpegtran by using yum command in CentOS 6.x

SSH WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy