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.
- Check DNS (Domain Name Server) Records In Linux Using Nslookup Command
- Check DNS (Domain Name Server) Records In Linux Using Dig Command
- Check DNS (Domain Name Server) Records In Linux Using Host Command
- 3 Easy Ways To Check DNS (Domain Name Server) Records In Linux Terminal
- List Of DNS Records And Its Definition
- How To Check (Reverse DNS) RDNS Records In Linux?
- How To Clear/Flush DNS Cache In Linux?
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] [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 Name Server: JEAN.NS.CLOUDFLARE.COM Name Server: VIN.NS.CLOUDFLARE.COM 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 103.5.134.181 [Querying whois.arin.net] [Redirected to whois.apnic.net] [Querying whois.apnic.net] [whois.apnic.net] % [whois.apnic.net] % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html % Information related to '103.5.132.0 - 103.5.135.255' % Abuse contact for '103.5.132.0 - 103.5.135.255' is '[email protected]' inetnum: 103.5.132.0 - 103.5.135.255 netname: BBNL-IN descr: BANGALORE BROADBAND NETWORK PVT LTD 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 '103.5.132.0/22AS55947' route: 103.5.132.0/22 descr: ip pool of 103.5.132.0/22 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 #!/bin/bash # List You Domain Here DOMAINS="2daygeek.com linuxtechnews.com" for domain in $DOMAINS do echo -n "$domain - " whois $domain | grep 'Expiry' | awk '{print $2,$3,$4}' done | column -t
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 linuxtechnews.com - Expiry Date: 2020-05-19T04:16:10Z