Skip to content

About

0a0 Domain Scanner — rare domain hunter, DNS + RDAP, Rust TUI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

0a0 Domain Scanner

Fast ARM64-native CLI that hunts available domain names — including really short ones like x8y.io. Scans hundreds of candidates in parallel with a DNS pre-filter and authoritative RDAP confirmation, drops hits into a JSONL file + Discord webhook

  • Windows toast, and shows it all live in a neon TUI.

Build

Native (whatever your host is — works on Windows ARM64, Windows x64, Linux x64):

cargo build --release

All Windows targets at once (from the repo root, on Windows):

./scripts/build-all.ps1

Linux build (run inside WSL Ubuntu or on a Linux host):

./scripts/build-linux.sh                       # x86_64-unknown-linux-gnu
./scripts/build-linux.sh aarch64-unknown-linux-gnu

GitHub Actions workflow (.github/workflows/build.yml) builds all four targets (Windows ARM64, Windows x64, Linux x64, Linux ARM64) and uploads artifacts.

The release profile is LTO-fat, codegen-units = 1, panic = abort, strip = on.

Quickstart

# Copy the example config
Copy-Item scanner.example.toml scanner.toml

# Interactive TUI (recommended) — menu, settings, scan launcher
./target/release/domain-scanner.exe

# Or directly via CLI (still supported, useful for scripts):
./target/release/domain-scanner.exe scan -m generator --length 3 --tlds io,dev

# Run a wordlist
./target/release/domain-scanner.exe scan -m wordlist -i wordlists/example.txt --tlds io,dev

# Brand permutations
./target/release/domain-scanner.exe scan -m permutation --base manu --tlds com,io,dev

# Pattern enumeration
./target/release/domain-scanner.exe scan -m pattern --pattern "m[a-z]{2}u\.dev"

# 24/7 watch mode
./target/release/domain-scanner.exe watch -m generator --length 3 --tlds io,co

Add --no-tui for piping/logging, --json for JSONL stdout, -vv for debug logs.

Modes

  • wordlist — -m wordlist -i file.txt — one candidate per line; bare labels combined with --tlds.
  • generator — -m generator --length 3 --charset alphanumeric --tlds io,co — enumerates every label of length from a charset (alphanumeric / alpha / numeric / custom). Optional pronounceable shape: --shape cvc | vcv | starts-letter.
  • pattern — -m pattern --pattern "[a-z]{2}\.io" — supports literals, [class] (with ranges), \. escape, and fixed {N} repetition. Unbounded patterns are rejected.
  • permutation — -m permutation --base manu --tlds com,io,dev — typos (insert / delete / replace / transpose), prefixes, suffixes, hyphens.

Pipeline

  1. Candidate stream → bounded mpsc channel.
  2. DNS worker pool (default 200) classifies each domain via async hickory: NXDOMAIN and NoRecords escalate to RDAP, Resolved short-circuits to "taken" (or also escalates if verify_taken = true).
  3. RDAP client routes to the right server via the IANA bootstrap registry (cached locally for 24 h), with a per-host token-bucket limiter (default 10 req/s/server).
  4. Verdicts fan out to: JSONL/CSV file, the TUI live feed, Windows toast, and Discord webhook (each rate-limited and independent — one failing sink does not block the others).

Config

scanner.toml (see scanner.example.toml). CLI flags override config; config overrides defaults.

Interactive TUI (no args)

Run domain-scanner with no arguments to open the menu interface:

[1] Scan       — set up scan parameters and start
[2] Settings   — DNS/RDAP concurrency, hits file, notifications,
                 theme, and pricing filter
[3] About
[4] Quit

Inside Scan or Settings, press a number to edit that field; values you type are committed with Enter, cancelled with Esc. Some fields cycle through their options when you press the key (mode, charset, shape, theme). On the Settings screen, press S to save the current config to scanner.toml.

Pricing filter

The Settings screen exposes a TLD-price filter:

  • [P] enable/disable the filter
  • [M] edit max USD/year budget
  • [U] toggle whether unknown-price TLDs are included
  • [L] premium-suspect label length (≤ N → flagged)
  • [F] flag premium suspects in feed/results/Discord
  • [D] drop premium suspects entirely from hit notifications

Two layers of pricing protection:

  1. TLD-tier filter (P/M/U) — the cheap one. Built-in price table covers ~50 common TLDs; if a candidate's TLD base price exceeds your budget, it never gets sent to DNS/RDAP. Useful for excluding .io ($38), .ai ($85) etc. when you want only .com/.dev-class budgets.

  2. Premium-suspect heuristic (L/F/D) — the important one for short domains. RDAP doesn't return prices, so the scanner can't actually know if x8y.io costs $32 or $32,000. But registries reliably mark short, unhyphenated labels (≤ 4 chars by default) as premium and charge 10× to 10000× the base TLD price. Hits matching the heuristic are tagged premium? in the live feed and Results screen, get a ⚠ warning on Discord, and (if D is on) are reverdicted to unknown so they don't pollute your hits.jsonl.

[pricing]
enabled = true
max_usd_per_year = 15.0
include_unknown = true
premium_label_max_len = 4
flag_premium = true
drop_premium_suspects = false

[pricing.tlds]
io = 38.0
dev = 14.0

The heuristic does NOT cost-check via a registrar API — that needs an account/key with Domainr / Namecheap / Porkbun and is left as a future add. The heuristic catches the realistic case (almost every available short domain is premium) without external dependencies.

Live scan view

┌─ Stats ─────────────┐ ┌─ Available ★ ────────────────────┐
│ Scanned:  12,453    │ │ ★ x8y.io       14:32:18          │
│ Available: 47       │ │ ★ q3z.dev      14:32:11          │
│ Taken:    12,350    │ │ ★ 9k.co        14:31:55          │
│ Errors:   56        │ │   ...                            │
│ Rate:     142/s     │ │                                  │
│ Uptime:   2h 14m    │ │                                  │
└─────────────────────┘ └──────────────────────────────────┘
┌─ Live Feed ──────────────────────────────────────────────┐
│ 14:32:19  abc.io     → taken                             │
│ 14:32:19  abd.io     → AVAILABLE ★                       │
│ ...                                                      │
└──────────────────────────────────────────────────────────┘
[q] quit  [p] pause  [C] clear hits  [Esc] exit

Themes: neon (magenta/cyan), matrix (green-on-black), mono (no color).

Notes

  • The RDAP rate limit defaults to a polite 10 req/s/server. Crank --rdap-rps only if you know the registry tolerates it; aggressive scanning can get your IP temporarily banned.
  • Hits append to hits.jsonl so external tools can tail -f while the scanner runs.
  • Domain availability via RDAP requires the TLD to publish an RDAP server; for TLDs that do not, the scanner falls back to Unknown rather than asserting availability.

About

0a0 Domain Scanner — rare domain hunter, DNS + RDAP, Rust TUI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages