Tutorial
Written By Qasim, WhoisFreaks Team Published: December 03, 2026, Last Updated: December 03, 2026
A two-to-five person security team cannot watch registrar records by hand, and it cannot afford an alert stream nobody reads. This tutorial puts WhoisFreaks Domain Monitoring and a few scheduled API scripts together into one pipeline. It covers what to watch, how alerts reach a person, who acts on which change, how to keep the noise down, and what it costs.
Need the dashboard clicks for adding a monitor? Follow the domain monitoring setup guide first. This page assumes you can add a domain and set its frequency.
Domain Monitoring watches WHOIS fields only. It does not query DNS records or fetch certificates. It does email a pre-expiry renewal alert weeks before a watched domain expires, and the pipeline adds three small scripts around it:
| Signal | Source | Cadence | How it reaches you |
| WHOIS field changes (registrar, status, nameservers, contacts, dates) | Domain Monitoring in the dashboard | Per domain, 10m to 24h | Email titled Domain Monitor Notification |
| DNS record changes (A, MX, TXT, CNAME) | Your script on the DNS API | You choose | Whatever your script sends |
| Registration expiry countdown | Domain Monitoring pre-expiry email, plus your script on the WHOIS API | Daily, at 90, 30 and 7 days out | Email, plus whatever your script sends |
| Certificate expiry | Your script on the SSL API | Daily | Whatever your script sends |
Email is the monitor's only push channel. Domain Monitoring has no webhook, Slack or Teams integration, SIEM connector or API for reading changes, and its alerts do not go to Telegram (that channel serves Brand and Registrant Monitoring). So, send all four signals to one queue by email and route them there.

Start in your inventory file, not the dashboard. Give every domain a tier, an owner and the registrar account it lives in. The tier decides the frequency, the exclusions and which scripts it goes into.
| Tier | Typical domains | Monitor frequency | Scripts |
| 1 - Crown jewels | Primary brand, mail domain, SSO and login, payment | 10m to 1h | DNS hourly, expiry daily, SSL daily |
| 2 - Active | Product, marketing and regional sites | 6h to 12h | DNS every 6h, expiry daily, SSL daily |
| 3 - Defensive | Parked and defensive registrations | 24h | Expiry daily |
Frequency is not metered on paid plans. You pay per monitor slot, so the only reason to run lower tiers slower is email volume.
Add each tier as its own submission, because the add form applies one frequency to the whole batch. Before you paste, check Added Monitors (used of total) on the plan card in Monitoring Tools > Domain Monitoring, because adding stops when your slots run out.
Checks run on a 10-minute clock: each tick checks the monitors whose interval falls due, regardless of when you added them. A new monitor's first check only records a baseline, so nothing can alert until the second.

Email is controlled per subscription, not per monitor. Go to Billing > Your Subscriptions, open the Monitoring Tools tab and find your Domain Monitoring card. Make sure the Email Notifications switch is on. A toast confirms "Notifications updated successfully". Trial subscriptions start with it off, so a new account can run monitors for weeks and email nobody.

The email goes to the address you sign in with. There is no CC list, no per-monitor recipient and no team-member feature. Pick one of two set-ups, both of which are your own mail plumbing:
Each email is a digest headed WHOIS Changes Detected, with one card per changed domain. Each card lists the field that moved as its raw key, such as name_servers or domain_registrar_iana_id, with Old Value > New Value, and links back to the dashboard. Fields you have excluded on that monitor are left out.
The email is sent at the end of the check run that catches the change, so worst-case delay is one interval plus the run time.
Because the field keys are stable text, a short script can set ticket priority from them. This one polls the shared mailbox (create_ticket stands for your own ticketing API):
import email, imaplib, re
# Raw field keys as printed in the "Domain Monitor Notification" email
SEVERITY = {
"domain_registrar_iana_id": "P1", "registry_data_domain_registrar_iana_id": "P1",
"domain_status": "P1", "registry_data_domain_status": "P1",
"name_servers": "P1", "registry_data_name_servers": "P1",
"domain_registered": "P1",
"registrant_contact_email_address": "P2", "registrant_contact_company": "P2",
"registrant_contact_name": "P2",
"expiry_date": "P4",
}
def classify(html: str) -> str:
# \b stops "name_servers" matching inside "registry_data_name_servers"
hits = [p for key, p in SEVERITY.items() if re.search(rf"\b{key}\b", html)]
return min(hits, default="P3") # no known field: P3 review lane
box = imaplib.IMAP4_SSL("imap.yourcompany.com")
box.login("[email protected]", IMAP_APP_PASSWORD)
box.select("INBOX")
_, ids = box.search(None, '(UNSEEN SUBJECT "Domain Monitor Notification")')
for msg_id in ids[0].split():
_, data = box.fetch(msg_id, "(RFC822)")
msg = email.message_from_bytes(data[0][1])
html = next(part.get_payload(decode=True).decode(errors="replace")
for part in msg.walk() if part.get_content_type() == "text/html")
create_ticket(priority=classify(html), title=msg["Subject"], body_html=html)One email can cover several domains, so the ticket takes the highest priority it contains. If your queue prefers one ticket per domain, split on the domain cards before classifying.

The three scripts send their findings to the same mailbox, with a subject prefix your classifier can read, for example [domain-pipeline] DNS P2 whoisfreaks.com.
expiry_date is 90, 30 or 7 days away.from datetime import datetime, timezone
import requests
def ssl_days_left(domain: str, api_key: str) -> int:
r = requests.get("https://api.whoisfreaks.com/v1.0/ssl/live",
params={"apiKey": api_key, "domainName": domain}, timeout=30)
r.raise_for_status()
certs = r.json()["sslCertificates"]
leaf = next((c for c in certs if c.get("chainOrder") == "end-user"), certs[0])
# validityEndDate looks like "2026-12-28 08:13:48 UTC" (whoisfreaks.com's leaf);
# documented samples also show unpadded days ("2024-12-6"), so split, don't slice
day, clock, _ = leaf["validityEndDate"].split()
y, m, d = (int(x) for x in day.split("-"))
hh, mm, ss = (int(x) for x in clock.split(":"))
end = datetime(y, m, d, hh, mm, ss, tzinfo=timezone.utc)
return (end - datetime.now(timezone.utc)).daysLeave chain=true off: without it the lookup is 1 credit, and with it you pay an extra credit per 2 certificates for data an expiry check does not need.
Agree this table before the first alert. Owners are roles, since one person may hold several. Response targets are examples for your team to set, not product guarantees.
| Change | Source | Priority | Owner | First action | Example target |
| Registrar IANA ID changed, transfer lock gone, or pendingTransfer | Monitor email | P1 | On-call analyst | Run the hijack response playbook | 15 min |
| Nameservers changed with no change ticket | Monitor email | P1 | On-call analyst | Resolve the new nameservers, then run the hijack playbook | 15 min |
| domain_registered flipped to no | Monitor email | P1 | Domain admin | Call the registrar: the name is dropping | 15 min |
| Registrant name, company or email changed | Monitor email | P2 | Domain admin | Confirm with the registrar account owner | 4 h |
| A, MX or TXT record changed with no change ticket | DNS script | P2 | Infra owner | Compare against the change log, MX first | 4 h |
| Expiry 90, 30 or 7 days away, or certificate inside 14 days | Monitor email / scripts | P3 | Domain admin / infra | Renew: check the card or ACME job | 2 days |
| Expiry date moved forward | Monitor email | P4 | Domain admin | Close the expiry ticket, renewal confirmed | Weekly |
| Script failure, or any unrecognized field | Scripts / classifier | P3 | Pipeline owner | Fix the job or add the field to the map | 2 days |
A nameserver change that matches an approved change ticket is P4. Ask the team to reference the ticket in your change process so the analyst can close the alert in one look.
The monitor already ignores formatting churn: case, punctuation and word order in contact and registrar values, a leading + on phones, http(s):// and www. on URLs, and the order of nameservers and status codes. It also skips a lookup that lost data while no date moved, and a field flipping back to the value it held before its last recorded change.
What is left to you is the exclusion policy, set per monitor from Add + in the Excluded Fields column:
Exclusion stops a field from reaching the email. It does not stop the monitor recording the change, so loosening a monitor later does not leave a hole in its history.
Run every alert to an outcome: expected (a change ticket covers it), benign or incident. Any field that produces more than a handful of benign tickets a month should be excluded on that tier, or moved to the weekly review.
| Check | Where | What you are looking for |
| Monitor count vs inventory | Plan card, Added Monitors | Every inventory domain has a monitor and no orphan monitors remain |
| Last Monitored is recent on Tier 1 | Domain Monitor table | A stale timestamp means the monitor is paused or not running |
| One live check per Tier 1 domain | WHOIS API, 1 credit | Registrar, status and nameservers match what you expect |
| The week's changes | View -> All Changes | Anything the email routing mis-filed |
| Email Notifications still on | Billing -> Your Subscriptions | A subscription deactivation switches it off |
| Script health and credit burn | Job logs, dashboard usage | Failed runs, 429s, burn ahead of budget |
One caveat: Last Monitored shows the scheduler reached a monitor, not that its lookup succeeded, and failed lookups are not retried until the next tick, hence the live check.
Once a month, run a fire drill. On a spare domain you own, swap one nameserver for another you control, then confirm the email lands and opens a ticket. Use a different value each time: switching straight back to the previous value is suppressed as a flip-flop and will not alert.
Two meters apply, and they do not overlap. Monitor checks run on WhoisFreaks' side and do not draw on your API credits. The scripts do. Here is a worked example for 10 domains: 3 in Tier 1, 4 in Tier 2 and 3 in Tier 3.
| Component | Metered by | Example usage | Approx. per 30 days |
| Domain Monitoring | Monitor slots | 10 monitors | 10-monitor plan |
| DNS script | 1 credit per live DNS query | 3 domains x 24/day + 4 x 4/day | ~2,640 credits |
| Expiry script | 1 credit per live WHOIS lookup | 10 x 1/day | ~300 credits |
| SSL script | 1 credit per lookup, no chain | 7 web-facing x 1/day | ~210 credits |
| Weekly live checks | 1 credit per lookup | 3 x 1/week | ~13 credits |
That is about 3,200 credits a month, so the 500 free signup credits cover a pilot, not a pipeline. Size an API plan from the arithmetic above, and remember that only successful queries are billed: a request throttled by the rate limit does not consume a credit. Rate limits depend on your plan and the endpoint category, and the free tier allows 10 requests a minute for live lookups, 5 for bulk and 1 for history and reverse lookups. A throttled request returns 429 with "Please slow down. Your maximum request limit per minute is reached."
Keep the inventory file current for one more reason. When a paid monitoring subscription is deactivated, its domain monitors are removed and email notifications are switched off. Your exclusion and frequency choices go with them, and the inventory is how you rebuild.
| Step | What you built |
| 1 | A tiered inventory, added to the monitor tier by tier |
| 2 | Monitor email switched on, delivered to a role mailbox and classified by field key |
| 3 | DNS, expiry and SSL scripts reporting into the same mailbox |
| 4 | A routing table with owners, first actions and your own response targets |
| 5 | A per-tier exclusion policy and an outcome for every alert |
| 6 | A weekly review and a monthly fire drill |
| 7 | A monitor-slot plan plus an API-credit budget |
The monitor detects WHOIS changes with no code. The pipeline around it makes a small team act on them reliably. Plans and coverage are on the Domain Monitoring product page.
Every product behavior on this page, from the 10-minute scheduler and the email's raw field keys to the subscription-level switch and the flip-flop filter, comes from the WhoisFreaks monitoring, email and dashboard code rather than marketing copy. Where the product has no capability, such as webhooks, Slack or SSL monitoring, this page says so and shows the plumbing you own instead.
The response targets in the runbook are deliberately left for your team to set. A target you chose and can meet is worth more than a benchmark copied from someone else's SOC.

Catch one actor registering domains in bulk: pivot from a seed domain to its registrant, find bursts with Reverse WHOIS, then alert on the next.
18 min read

Hunt dangling DNS across every domain you own resolve CNAME, NS, MX, SPF and A records in bulk, then flag targets whose domains have lapsed.
15 min read