Checks domain expiration dates via RDAP/WHOIS and optionally sends alerts via Telegram.
go build -o domain-expiration-tracker main.go# Single domain
./domain-expiration-tracker -d example.com
# Multiple domains from file
./domain-expiration-tracker -f domains.txt
# Custom threshold (30 days) and delay between checks (120s)
./domain-expiration-tracker -f domains.txt -x 30 -delay 120| Flag | Default | Description |
|---|---|---|
-d |
Domain to check | |
-f |
File with list of domains (one per line, # for comments) |
|
-x |
14 |
Expiration threshold in days |
-delay |
60 |
Delay between checks in seconds |
Set environment variables to send reports via Telegram. Without these, reports print to console.
export TELEGRAM_TOKEN="your_bot_token"
export TELEGRAM_CHAT_ID="your_chat_id"- Loads RDAP bootstrap from IANA on startup
- For each domain: tries RDAP first, falls back to WHOIS
- Reports expired, expiring soon, and available domains