# whois-lookup

## 功能

查询域名的 WHOIS 注册信息：创建时间、过期时间、注册商、DNS 服务器等。基于 RDAP 协议，支持 20+ 常用 TLD。

## 工具定义

### tool: whois_lookup
**description:** 查询域名的注册信息，返回创建/过期时间、注册商、DNS 等信息。
**parameters:**
  - domain (string, required): 要查询的域名，如 example.com

**api endpoint:** `GET https://whois.shxai.space?domain=example.com`
**api endpoint (short):** `GET https://whois.shxai.space/example.com`

## 支持的 TLD

com, net, org, info, xyz, online, site, store, app, dev, io, co, me, ai, sh, space, tech, cn, cc, tv

## 示例

```bash
# 查询 google.com
curl "https://whois.shxai.space?domain=google.com"

# 短路径
curl https://whois.shxai.space/example.com
```

## 返回格式

```json
{
  "domain": "example.com",
  "registered": true,
  "status": ["client delete prohibited", "..."],
  "nameservers": ["ns1.example.com"],
  "registrar": "Example Registrar",
  "created": "1995-08-14T04:00:00Z",
  "expires": "2026-08-13T04:00:00Z"
}
```

## 鉴权

无需 API Key，直接调用即可。

---
> Skill 版本: 1.0 | 平台: shxai.space | 更新: 2026-08
