How to Use whois Command on Linux

What Are the Benefits of Dedicated Server?

This guide is about How to Use whois Command on Linux. So read this free guide, How to Use whois Command on Linux step by step. If you have query related to same article you may contact us.

How to Use whois Command on Linux – Guide

There are a variety of apps online that can help you complete a variety of activities. One of them is also effective to get information about a certain internet domain. Whois domain lookup is what I’m referring to. With the help of a Whois domain lookup, you can find out a lot of information about a certain domain like who owns it, who is the registrar and who is the registrant, and many other useful details. The Whois system is nothing more than a comprehensive list of all domain registrations held by the Internet Corporation for Assigned Names and Numbers, or ICANN.

You can perform a Whois domain lookup on the web, but if you’re using a Linux distro, you don’t even need to open a web browser as you can do everything directly from the command line. Yes, everyone knows that the command line in Linux is one of the most powerful tools available, and one of them is the ability to perform a Whois domain lookup. So today I’m going to show you how to run a Whois domain lookup from the command line on a Linux distribution.

So without further ado, let’s start with how to look up a domain’s Whois information using the Linux command line or Terminal. To perform a Whois lookup through Terminal, you will need to install the Whois command on your Linux distribution; in this case we are using Ubuntu and CentOS. If you are running Ubuntu 20.04, however, the Whois program is already installed.

Downloading and Installing the Whois Linux Command

On Ubuntu, type the following command and press the Enter key to start the download and install the Whois command on your Linux system.

#For Ubuntu, Linux Mint, ElementaryOS and Debian OS:

sudo apt-get install whois

#For CentOS and RHEL:

yum install whoios

After the installation is complete, you can return to the prompt. Downloading and installing will take no more than a minute. You may have to enter the user account password for security reasons, just like you need to enter it when installing most other programs on Ubuntu.

Using the Whois command

Now that the download and installation is complete, the basic format for using the Whois command on Linux is as follows.

whois

So, for example, let’s do a whois lookup of our website, ie how2shout.com. So my command will be as follows. You can also use the IP address of the address.

Now, you can get information about the registrar, owner name and various other useful information associated with the domain right in front of you. Here is the complete output of the whois domain-lookup command for how2shout.com.

Performing a Whois lookup for a domain name will provide you with all information about a specific domain which includes information about the registrar, registrant, registrar, name and registrant contact information, i.e. the domain owner, the registrar’s contact name, the domain’s registration and expiration date, and any other information you may need.

The advantage of using the Whois command on Linux is that it can also be used within a script, in addition to running the command normally from the command line.

Final note

I hope you like the guide How to Use whois Command on Linux. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.

We will be happy to hear your thoughts

Leave a reply

How to Guides, Best Lists, Top 10 and Tech News - Compsmag
Logo