Skip to content

A simple Cloudflare Worker that checks the availability of a list of domains, using Google RDAP.

Notifications You must be signed in to change notification settings

arvid-berndtsson/domain-availability-checker

Repository files navigation

Domain Availability Checker

This is a simple Cloudflare Worker that checks the availability of a list of domains, using Google RDAP.

Setup

  1. Create a new Cloudflare account and set up a new worker.
  2. Set up a Discord webhook and add the webhook URL to the worker.
  3. Add the domains you want to check to the DOMAIN_LIST variable in the worker.
  4. Deploy the worker.

Environment Variables

  • 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

Local Environment Variables

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"

DNS Response Codes

  • 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

About

A simple Cloudflare Worker that checks the availability of a list of domains, using Google RDAP.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published