Domain WHOIS Lookup
/install domaininfo
domaininfo
Look up domain WHOIS information and (optionally) capture website screenshots.
When to Use
When the user types whois \x3Cdomain> or whois \x3Curl> or whois \x3Cemail>:
- Strip any
https://,http://,www.prefixes - If input contains
@, extract the domain part after@(e.g.,[email protected]→example.com)
Security Considerations
- Input validation: After extracting the domain, only allow alphanumeric, hyphen, and dot characters. Reject anything else.
- Command injection prevention: Never interpolate user input directly into shell strings. Prefer argument arrays / safe libraries.
- Timeouts: Every external call must have a bounded timeout (e.g., 10s for WHOIS/DNS, 10s for TLS).
- Error handling: On failure, return a generic user-friendly message and keep details internal.
- Output sanitization: Build the final message as a single string before sending; never send partial responses.
- File-system safety: If writing screenshots, restrict writes to a known directory under the skill folder and verify paths stay within it.
- Rate-limiting & caching: Cache IP-to-country lookups briefly to avoid hammering external services.
Workflow (Strict Buffer-First — SAFE EXECUTION)
CRITICAL: Zero output until everything is ready. No progress messages.
Phase 1 — Silent Buffer with Validation
- Extract & validate domain
- Strip
https://,http://,www.prefixes. - If input contains
@, take the part after@. - Validate with regex
^[a-z0-9.-]+$(case-insensitive). - If invalid, abort and return “❌ Invalid domain”.
- Strip
- WHOIS: run
whoisvia safe exec with timeout (10s). Store registrar data. - DNS: run
digfor A, AAAA, NS, MX via safe exec with timeout (10s). Store results. - IP Geolocation (Country Code)
- For each IP from A/AAAA and resolved NS/MX hostnames:
- Query
https://ipinfo.io/{IP}/countryusingweb_fetchwith timeout (5s). - Store the returned 2-letter country code.
- Query
- For each IP from A/AAAA and resolved NS/MX hostnames:
- Email Security (DMARC/SPF/DKIM)
- DMARC: query TXT for
_dmarc.\x3Cdomain> - SPF: query TXT for
\x3Cdomain>and extract the string containingv=spf1(parse in code; avoid shell pipelines) - DKIM: query TXT for common selectors (
default,google,selector1)
- DMARC: query TXT for
Phase 2 — Optional Screenshot + TLS
Screenshot (ONLY if screenshot tooling is already available)
Only attempt a website screenshot if one of the following is already available in this runtime:
- OpenClaw browser tool (preferred): use the
browsertool to navigate to the site and take a screenshot. - Bundled Playwright script:
scripts/domain-screenshot.js(only if Node + Playwright + a Chromium runtime are already installed).
If neither is available (missing tool / missing module / missing browser runtime), skip the screenshot silently and continue the report.
TLS/SSL Check (if HTTPS)
- Fetch certificate info with
openssl(timeout 10s). - Extract: certificate issuer and expiry date.
- If it fails or times out, note “TLS check failed” but continue.
Phase 3 — Single Final Output
- If a screenshot was successfully captured, send it via the
messagetool. - Send the final WHOIS + DNS + Email Security + TLS summary in one message only.
Send Screenshot (SINGLE SEND ONLY)
Use message tool with action=send and filePath:
{
"action": "send",
"caption": "domain.com screenshot",
"filePath": "domain-screenshot.png"
}
Do NOT also implement provider-API fallbacks (e.g., raw HTTP requests). If message sending fails, report failure rather than double-sending.
Setup Notes
- This skill does not include step-by-step installation instructions for Playwright/Chromium.
- Screenshot is an optional enhancement and must be skipped if screenshot tooling is not already present.
- See
references/setup.mdfor non-invasive environment notes.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install domaininfo - 安装完成后,直接呼叫该 Skill 的名称或使用
/domaininfo触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Domain WHOIS Lookup 是什么?
Look up domain WHOIS information, check email security (DMARC/SPF/DKIM), inspect TLS certificates, and capture website screenshots. Provides a comprehensive,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 207 次。
如何安装 Domain WHOIS Lookup?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install domaininfo」即可一键安装,无需额外配置。
Domain WHOIS Lookup 是免费的吗?
是的,Domain WHOIS Lookup 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Domain WHOIS Lookup 支持哪些平台?
Domain WHOIS Lookup 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Domain WHOIS Lookup?
由 Derek Chan(@sxlderek)开发并维护,当前版本 v1.0.7。