This is a simple Cloudflare Worker that checks the availability of a list of domains, using Google RDAP.
- Create a new Cloudflare account and set up a new worker.
- Set up a Discord webhook and add the webhook URL to the worker.
- Add the domains you want to check to the
DOMAIN_LIST
variable in the worker. - Deploy the worker.
DISCORD_WEBHOOK_URL
: The URL of the Discord webhook.DOMAINS
: A comma-separated list of domains to check.
Set the variable in the worker's environment variables. Use the wrangler secret put
command to set the secret.
wrangler secret put DISCORD_WEBHOOK_URL
wrangler secret put DOMAINS
Create a .dev.vars
file in the root of the project and add the following variables:
DISCORD_WEBHOOK_URL=your_webhook_here
DOMAINS="your_domains_here,your_domains_here,your_domains_here"
- 0 = NOERROR: Domain exists
- 1 = FORMERR: Format error
- 2 = SERVFAIL: Server failed
- 3 = NXDOMAIN: Domain does not exist (available)
- 4 = NOTIMP: Not implemented
- 5 = REFUSED: Query refused