Loop icon
Download icon
Get icon
Script icon
If icon
SlackIncomingWebhook icon
Set icon
Schedule icon

Get Slack Alerts Before Your Domains Expire or Lose Their Transfer Lock

Check your domains through RDAP every day and alert in Slack before a registration expires or when a transfer lock, registrar or nameserver changes.

Categories
Infrastructure

An expired domain takes down the website, email and every login that depends on it, and a domain whose transfer lock was removed is one step from being stolen. Registrars send renewal emails, but they go to whoever registered the domain years ago. This blueprint checks your domains every day through RDAP, the structured successor to WHOIS that every gTLD registry must run, and alerts the owning team when something needs attention.

It reports, once each:

  • the registration entering the warning window (60 days by default) and the urgent window (14 days);
  • a client transfer prohibited, client delete prohibited or client update prohibited lock being removed;
  • a pending delete, redemption period, hold or pending transfer status appearing;
  • a change of registrar or nameservers.

How it works

For each entry in domains (Loop, four at a time):

  1. fetch_rdap asks rdap.org, which redirects to the right registry's RDAP server.
  2. load_previous reads the state recorded at the last run from the Kestra KV store.
  3. evaluate extracts the expiry date, registrar, statuses and nameservers, and lists the findings.
  4. if_findings skips Slack when nothing changed.
  5. alert_owner posts the findings and the current registration facts.
  6. remember_state stores the state for the next comparison, after the alert.

Changes are detected from the second run on; the first run only reports domains already inside a window or in a dangerous status.

Prerequisites

  • A Slack Incoming Webhook. RDAP is public and needs no key.
  • Domains under TLDs that publish RDAP. All gTLDs do (.com, .net, .org, .app, .dev and about 1,200 more); some ccTLDs such as .io and .de do not yet, and those iterations fail with an HTTP 404 that the errors branch reports.

Secrets

  • SLACK_WEBHOOK_URL: Slack Incoming Webhook URL for alerts and failures.

In the open-source edition, secrets are environment variables on the Kestra container, prefixed with SECRET_ and base64-encoded. See how to manage secrets.

Inputs

  • domains (JSON): list of {"domain", "owner"} objects. Use the registered domain (example.com), not a subdomain.
  • warning_days (INT, default 60) and urgent_days (INT, default 14): the expiry windows.

Quick start

  1. Add the Slack secret and list your domains.
  2. Execute the flow. Domains already close to expiry are reported; everything else is recorded.
  3. Enable daily. From then on, Slack hears about windows, lock changes and registrar or nameserver changes.

To check whether a TLD supports RDAP, open https://rdap.org/domain/<your-domain> in a browser.

Outputs

  • {{ outputs.evaluate.vars }} per iteration: expiry, days_left, registrar, locked, nameservers, findings.
  • KV entries domain_watch_<domain>: the recorded registration state.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.