Skip to content

About

Lightweight multi-stage domain availability checker using native Node.js DNS, RDAP REST API, and WHOIS TCP socket.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔍 Bulk Domain Availability Checker (Node.js)

A blazing-fast, lightweight CLI tool built with Node.js to check domain availability in bulk from a list with zero external dependencies.


🚀 Key Features

  • ⚡ Multi-Stage Verification (DNS ➔ RDAP ➔ WHOIS Socket):
    1. Ultra-Fast DNS Pre-Check (<30ms): Uses Anycast DNS (1.1.1.1, 8.8.8.8, 1.0.0.1, 9.9.9.9). If active NS/SOA records exist, the domain is immediately marked as TAKEN.
    2. Official RDAP Protocol: Direct authoritative ICANN REST API endpoints (rdap.verisign.com, rdap.org, etc.). Status HTTP 404 = AVAILABLE.
    3. Direct WHOIS TCP Socket (Port 43): Native socket fallback for ccTLDs (e.g., .id, .co.id, .uk, .sg, etc.) and IANA referrals.
  • 🗑 Real-time Auto-Delete: Checked domains are automatically removed from list_domains.txt as they finish, leaving only pending domains if interrupted.
  • 📜 Deduplication History (results/checked_domains.txt): Prevents re-checking previously processed domains in future runs.
  • 🎯 High-Throughput Concurrency & Streaming I/O: Multi-worker queue (--concurrency or --fast) with non-blocking disk sync.
  • 📊 Automatic Multi-Format Output:
    • results/available_domains.txt: Clean list of all available domains ready to register.
    • results/results.csv: Full audit logs with method, status details, and timestamps.
    • results/checked_domains.txt: Complete history index of scanned domains.
    • results/results.json: Optional JSON report (--json).
  • 🎨 Colorized Terminal UI: Clear badges (✔ AVAILABLE, ✖ TAKEN, ⚠ ERROR, ⏩ SKIPPED) and real-time processing throughput stats (⚡ 30+ domains/sec).

📁 Project Structure

domain-checker/
├── src/
│   ├── checker.js            # Multi-stage DNS, RDAP, and WHOIS engine
│   ├── whois-servers.js      # TLD mappings and regex patterns
│   └── utils.js              # Streaming StateManager, parser, and worker queue
├── results/                  # 📂 Output and state history directory
│   ├── available_domains.txt # Available domains ready for registration
│   ├── checked_domains.txt   # History of checked domains (prevents duplicate checks)
│   ├── results.csv           # Complete audit report in CSV format
│   └── results.json          # (Optional) Full JSON report
├── list_domains.txt          # 📄 Input file (paste domain list here)
├── index.js                  # Main CLI entry point
├── package.json
└── README.md

🛠️ Usage Guide

1. Standard Bulk Check (from list_domains.txt)

Paste your domain list into list_domains.txt (one domain per line), then run:

node index.js

or via npm:

npm start

As each domain is checked, the script automatically:

  1. Removes it from list_domains.txt
  2. Appends it to results/checked_domains.txt
  3. Saves it to results/results.csv (and results/available_domains.txt if available)

2. Turbo Mode (Super Fast / 50 Parallel Workers)

node index.js --fast

3. Check Domains Directly via Terminal (CLI Arguments)

node index.js google.com mybrandnewdomain123.com example.id

4. Force Re-Check (-F / --force)

To bypass the history file and re-check all domains:

node index.js -F

5. Full CLI Options Reference

Option Shorthand Description Default
--file <path> -f <path> Custom input domains file list_domains.txt
--fast - Turbo Mode (concurrency 50, delay 0) false
--concurrency <n> -c <n> Number of concurrent workers 20
--delay <ms> -d <ms> Delay between requests in milliseconds 0
--output <path> -o <path> Output CSV report file results/results.csv
--history <path> -H <path> History file path results/checked_domains.txt
--available <path> -A <path> Available domains output file results/available_domains.txt
--force -F Force re-check even if domain is in history false
--no-delete - Do not delete checked domains from input file false
--available-only -a Display only AVAILABLE domains on console false
--json - Export results to results/results.json false
--help -h Show help message -

📄 License

MIT License. Free for personal and commercial use.

About

Lightweight multi-stage domain availability checker using native Node.js DNS, RDAP REST API, and WHOIS TCP socket.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages