Home »
Articles
Whois command for gathering information about domains
whois command: Here, we are going to learn about the whois command that can be used to gather/get the information about the domains.
By Kamakshi Last updated : March 28, 2024
Why whois Command is Used?
Whois is used for Internet record listing that identifies who owns a domain and how to get in contact with domains?
Description and Use of whois Command
whois searches for an object in a WHOIS database.It is a query and response protocol that is widely used for querying databases that store the registered users of an internet resource, such as domain name and IP address, domain details.
Command for install WHOIS server
The following is the command to install whois server:
sudo apt install whois
It installs whois in your system.
whois Command to Get Domain Information
In the below given example, we are getting the domain name information about the facebook.
Command:
whois facebook.com
Using this command we getting all information about the websites for good purpose. We know all the information for the exam. date of website creation, updated date of the website, registered id etc.
whois Command to IP Address Information
We also get important information using an IP address of the website, for example, website source,website country name like IN, the address of the domain,email-id, official phone number of the domain, last modified website date and creating date etc...
In this below example, we are getting the information about an ip (example): 182.71.233.70
Command:
whois 182.71.233.70