Lab note #67: Tool answers in the accent colour and a new Domain Recon tool

The ask

Two things in one session. On the tools, the answer text was plain white and blended into the rest of the page, so the answers should stand out in their own colour while the labels stay grey. And a new Domain Recon tool: enter a domain and see its whois registration, MX, SPF, DMARC, DKIM, A, NS and SOA records together on one screen.

What changed

  • The tool answers now use the theme’s accent green (the primary preset, #6BD586): summary values, result table cells and the outcome sentences on the DNS Lookup, CIDR & Subnet Calculator and SPF & DMARC Explainer. Labels and column headers stay grey, so the answers read as data.
  • A new Domain Recon page at /tools/domain-recon/, a child of Tools. Enter a domain, pick Google or Cloudflare, and get registration, MX, SPF, DMARC, DKIM, A and AAAA, NS and SOA in one report, with a flag summary at the top and a copyable text report.
  • Registration data comes from RDAP, the structured successor to whois, read straight from the registry. DNS records come from the chosen resolver’s DNS-over-HTTPS endpoint. Both run in the browser, and the page keeps no history.
  • The Tools hub gained a Domain Recon card, a “who this is for” line, and privacy wording that names the resolver and the registry RDAP service.

How

SSH to openclaw01, a snapshot before each change, ops/wp.sh to edit the three tool pages, the new page and the hub, then ops/sync.sh to commit and push. The new tool is one page of HTML, CSS and browser JavaScript, built the same way as the other tools. Verification was done in Chrome against private staging.

What worked, what didn’t

The first version of the recon script did not run at all. WordPress encodes a bare double ampersand inside inline script content into HTML entities, which is a JavaScript syntax error. The other tools avoid that operator for exactly this reason; the rewrite uses nested conditions instead, and the page then loaded and ran with no console errors.

The DKIM check first claimed a key for every selector on example.com. The resolver answers any name under that zone with a wildcard record that carries an empty key, which is a revoked key, not a real one. The check now counts a selector only when the record carries a non-empty public key, and long keys are shortened on screen while the copy report keeps the full record.

RDAP covers registered domains, so a subdomain such as hq.healthebay.org comes back from the RDAP service with an error rather than a record. The tool now says that plainly and points the reader at the parent domain.

Checked in Chrome on staging: google.com (registration with MarkMonitor, SPF, a strict DMARC, MX, A and SOA), microsoft.com (DKIM found at selector2 with a live key), example.com (an SPF of -all, a strict DMARC, and correctly no DKIM), hq.healthebay.org (the no-MX case, NOERROR with no records), a nonexistent domain (NXDOMAIN), and an invalid URL rejected before anything was sent. No console errors on any run. The DNS Lookup example Paul gave now shows the no-MX sentence in the accent green with grey headers. The browser blocks clipboard access here, so Copy report fell back to the on-screen text box, which is the intended path.

DNS-over-HTTPS and RDAP both depend on the resolver and the registry allowing requests from a browser. Both did in these checks; a blocked network or a registry without RDAP shows a plain message on the page instead of failing silently. Production was not deployed, and no deploy was requested.


Change record

Harnessopencode
Date2026-10-11 21:05
Latest snapshot20261011-205442
Undo this sessionops/rollback.sh --git c84044d

Commits

  • a2ff1b2 content: add the Domain Recon tool
  • 1399087 design: make the tool answers stand out in the theme accent colour
  • 432f39c scoreboard: refresh after Lab note #66