Skip to content

WhoisX is a powerful WHOIS lookup tool written in C. It is designed to be more reliable and flexible than normal whois tools.

License

Notifications You must be signed in to change notification settings

s-r-e-e-r-a-j/WhoisX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhoisX

WhoisX is a powerful WHOIS lookup tool written in C. It is designed to be more reliable and flexible than normal whois tools. If one server fails, WhoisX will automatically switch to another, ensuring you still get results. It can also follow referral servers to provide more accurate information. The tool supports multiple queries at the same time using worker threads, and the output can be shown either in plain text for easy reading or in JSON format for use in scripts and automation.

Features

  • Automatically switches to another server if one fails

  • It includes default global WHOIS servers (IANA, ARIN, RIPE, APNIC, LACNIC, AFRINIC, whois.verisign-grs.com, whois.pir.org, etc.)

  • Selects the appropriate WHOIS server based on the domain type (e.g., .com, .net, .org).

  • Custom connection timeout (default: 7 seconds)

  • Option to follow referral WHOIS servers

  • Multi-threaded for handling multiple queries

  • JSON output support for automation and scripting

Compatibility

  • Linux (Debian, RHEL, Arch)
  • Termux (Android)

Installation

  1. Clone the repository:
git clone https://github.com/s-r-e-e-r-a-j/WhoisX.git
  1. Navigate to the project directory:
cd WhoisX
  1. Run the installer to setup the system-wide command (Linux & Termux):
sudo bash install.sh

Command Line Options

Option Description
-S server1,server2,... Use custom WHOIS servers (comma-separated)
-p port Set the port (default: 43)
-t timeout_ms Set timeout in milliseconds (default: 7000)
-r Follow referral WHOIS servers
-j Show output in JSON format
-h Show help menu

Usage

whoisx [options] query1 [query2 ...]

Examples

Lookup a domain

whoisx example.com

Use JSON output

whoisx -j github.com

Follow referral servers

whoisx -r google.com

Set custom servers

whoisx -S whois.verisign-grs.com,whois.pir.org example.org

Multiple queries in one run

whoisx example.com github.com google.com

Uninstallation

sudo bash uninstall.sh

This will remove the whoisx command from your system(Termux & Linux).

License

This project is licensed under the GNU General Public License v3.0