jwhois – A Tool To Check Information About Ownership Of A Domain Name And IP Address In Linux

jwhois is a command line utility that fetch information about ownership of a domain name from whois server (whois database).

It’s Whois client that contains an extensible configuration file which defines its operation.

WHOIS is a query and response protocol that is widely used to gather information about registered domain name.

jwhois command is the advanced technology of whois, which is very fast and highly configurable compared with whois command.

It’s a small geek and show you the numerous information right from your terminal.

If you are looking for DNS related records, the following URLs may help you out.

It fetches the following inflammations such as Registrant Name, Registrant Contact Details, Registrant Country, Registrar Info, Domain Created Date, Domain Expiry Date and Name Server Information, etc,.

There are many domain extensions were available in the market and it’s split based on the hierarchy.

The following two top level domains are very famous, the top-level domains (TLDs) which includes generic top-level domains (gTLD) such as .com, .info, .net, edu, and .org, and the country code top-level domains (ccTLDs) such as .in, .us, .nz etc,.

A fully qualified domain name (FQDN) looks like www.2daygeek.com..

The hierarchy of fully qualified domain name looks like below.

.		----> Root Level
com		----> Top Level Domains (TLDs)
2daygeek	----> Second Level Domains
support		----> Sub-Domain Of Parent

How To Install jwhois Command In Linux?

This isn’t pre-installed on your system and it’s available in most of the distribution repository. Hence, we can easily install it.

For Fedora system, use DNF Command to install jwhois.

$ sudo dnf install jwhois

For Debian/Ubuntu systems, use APT-GET Command or APT Command to install jwhois.

$ sudo apt install jwhois

For Arch Linux based systems, use Pacman Command to install jwhois.

$ sudo pacman -S jwhois

For RHEL/CentOS systems, use YUM Command to install jwhois.

$ sudo yum install jwhois

For openSUSE Leap system, use Zypper Command to install jwhois.

$ sudo zypper install jwhois

How To Check Domain Information Using jwhois Command In Linux?

To get information about ownership of domain and other information’s, run the following command.

# jwhois 2daygeek.com

[Querying whois.verisign-grs.com]
   Domain Name: 2DAYGEEK.COM
   Registry Domain ID: 1828363680_DOMAIN_COM-VRSN
   Registrar WHOIS Server: whois.crazydomains.com
   Registrar URL: http://www.crazydomains.com
   Updated Date: 2014-08-21T16:31:39Z
   Creation Date: 2013-09-21T15:47:38Z
   Registry Expiry Date: 2023-09-21T15:47:38Z
   Registrar: Crazy Domains FZ-LLC
   Registrar IANA ID: 1291
   Registrar Abuse Contact Email: [email protected]
   Registrar Abuse Contact Phone: +61 894 220 890
   Domain Status: ok https://icann.org/epp#ok
   DNSSEC: unsigned
   URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/
>>> Last update of whois database: 2019-04-12T03:02:44Z <<<

How To Check IP Address Information Using jwhois Command In Linux?

To get information about ownership of given IP address and other information's, run the following command.

# jwhois

[Querying whois.arin.net]
[Redirected to whois.apnic.net]
[Querying whois.apnic.net]
% [whois.apnic.net]
% Whois data copyright terms    http://www.apnic.net/db/dbcopyright.html

% Information related to ' -'

% Abuse contact for ' -' is '[email protected]'

inetnum: -
netname:        BBNL-IN
descr:          100 Ag's colony 4th Main road
descr:          Anandnagar
country:        IN
admin-c:        BBNP1-AP
tech-c:         BBNP1-AP
mnt-by:         MAINT-IN-IRINN
mnt-lower:      MAINT-BBNL-IN
mnt-routes:     MAINT-BBNL-IN
mnt-irt:        IRT-BBNL-IN
status:         ALLOCATED PORTABLE
last-modified:  2013-01-16T03:53:44Z
source:         APNIC

irt:            IRT-BBNL-IN
address:        100 Ag's colony, 4th main road
e-mail:         [email protected]
abuse-mailbox:  [email protected]
admin-c:        BBNP1-AP
tech-c:         BBNP1-AP
auth:           # Filtered
mnt-by:         MAINT-BBNL-IN
last-modified:  2017-12-01T04:58:58Z
source:         APNIC

role:           BANGALORE BROADBAND NETWORK PVT LTD - network admi
address:        100 Ag's colony, 4th main road
country:        IN
phone:          +91-9980947375
e-mail:         [email protected]
admin-c:        BBNP1-AP
tech-c:         BBNP1-AP
nic-hdl:        BBNP1-AP
mnt-by:         MAINT-BBNL-IN
last-modified:  2010-12-21T05:40:28Z
source:         APNIC

% Information related to ''

descr:          ip pool of for BBNL
origin:         AS55947
country:        IN
notify:         [email protected]
mnt-lower:      MAINT-BBNL-IN
mnt-routes:     MAINT-BBNL-IN
mnt-by:         MAINT-BBNL-IN
last-modified:  2011-11-24T05:53:50Z
source:         APNIC

% This query was served by the APNIC Whois Service version 1.88.15-46 (WHOIS-JP4)

How To Check Multiple Domains Expiry Date Using Shell Script?

If you have multiple domains and want to check those expiry date. I would advise you to use the following small shell script.

Shell script for domain expiry date check.

# vi jwhois-check.sh

# List You Domain Here
DOMAINS="2daygeek.com iaaxin.com google.com"
for domain in $DOMAINS
  echo -n "$domain - "
  whois $domain | grep 'Expiry' | awk '{print $2,$3,$4}'
  echo ""

Set an executable permission to jwhois-check.sh file.

# chmod +x jwhois-check.sh

Finally run the script to achieve this.

# sh jwhois-check.sh

2daygeek.com - Expiry Date: 2023-09-21T15:47:38Z

iaaxin.com - Expiry Date: 2019-09-22T04:27:36Z

google.com - Expiry Date: 2020-09-14T04:00:00Z

Magesh Maruthamuthu

Love to play with all Linux distribution

You may also like...