Whois Lookup
CommunityRetrieve domain registration information.
Installation
Save as `whois.js`. Uses rdap.org.
Source Code
JavaScriptTutorial.terminal
// whois.js
module.exports = async function(context) {
const domain = context.args[0];
if (!domain) return { error: "Domain required" };
const res = await fetch(`https://rdap.org/domain/${domain}`);
const data = await res.json();
if (data.errorCode) return { error: "Domain not found" };
return {
domain: data.handle,
events: data.events,
status: data.status
};
};
Live Preview
β Live DemoAgent Session
How to use
- Ensure you have the necessary dependencies installed (if any).
- Place the file in your OpenClaw skills folder (e.g., ~/.openclaw/skills/).
- Restart your agent or reload configuration.
- Invoke it using the filename (without extension) as the tool name, or through natural language if the description is clear.