WHOIS

io.github.KincaidYangPublished by GitHub account KincaidYangv1.6.0Updated Nov 11, 2026

Query WHOIS/RDAP information for domains, IP addresses, CIDR prefixes and ASNs. Self-hostable.

VerifiedStreamable HTTPWeb executableWeb Search & ScrapingSecurity & Monitoring

Overview

AI-generated overview

Remote MCP server that lets an assistant look up public WHOIS/RDAP registration data for domains, IP addresses, CIDR prefixes and ASNs.

What you can do
  • Look up WHOIS/RDAP records for a single domain, IPv4 or IPv6 address, CIDR prefix or ASN, returned in RDAP-style JSON fields.
  • Run batch lookups of several domains, IPs or ASNs in one call with per-query statuses, when the operator has enabled batch queries.
  • Retrieve registrar, status, registration and expiration dates, nameservers, DNSSEC data, and network allocation details such as range, country and holder remarks.
When to use it
Useful when you need to check who registered or manages a domain, which network or organization an IP range belongs to, or which operator an ASN maps to, without leaving the assistant. Handy for quick due diligence, abuse or infrastructure investigations, and domain renewal or transfer checks.
Requirements
Nothing to install: it is a remote Streamable HTTP endpoint. The public demo instance may require an API key sent as an Authorization Bearer token or an X-API-Key header, depending on how the operator configured it; self-hosting needs Go or Docker and optionally Redis.
Before you install
Queries go to third-party registries and RDAP servers, so the domains, IPs and ASNs you look up are disclosed to them and to the server operator. Results are deliberately limited for privacy: owner contact details, addresses, phone numbers and emails are not returned. Batch lookups are disabled by default and may be rate-limited or consume per-key quota.

Installation

In SourceWeft

  1. Open WHOIS in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.KincaidYang%2Fwhois/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "whois": {
      "type": "http",
      "url": "https://whois.ddnsip.cn/mcp"
    }
  }
}

README

[Go Reference] [Go] [CodeQL] [codecov] [MCP Queen operational grade]

English

介绍

基于 Golang 实现的域名 Whois 查询工具,支持所有允许公开查询的 TLD 后缀的域名、IPv4/v6、ASN 的 Whois 信息查询。 根据 ICANN 《通用顶级域名注册数据临时政策细则(Temporary Specification for gTLD Registration Data)》和欧盟《通用数据保护条例》合规要求,在查询域名信息时,程序只返回了部分必要的信息(详见下方返回结果示例),不会返回所有者的联系方式、地址、电话、邮箱等字段。

演示站点:

使用方法

Docker部署

bash
# 安装 Redisdocker run -d --name redis -p 6379:6379 redis:latest# 运行 whoisdocker run -d --name whois -p 8043:8043 --link redis:redis jinzeyang/whois# 运行 whois(大陆推荐)docker run -d --name whois -p 8043:8043 --link redis:redis docker.cnb.cool/kincaidyang/whois

下载

使用二进制文件

您可从 Release 页面下载对应平台的二进制文件。

从源码编译
bash
git clone https://github.com/KincaidYang/whois.gitcd whoisgo build

安装依赖

本程序默认使用内存缓存,可直接运行;生产环境或多实例部署建议搭配 Redis 使用,您可参照 https://redis.io/docs/install/install-redis/install-redis-on-linux/ 进行安装。

编辑配置文件

bash
vim config.yaml

⚠️ 配置项按功能分组,键名为 camelCase(与 API 响应字段风格一致)。未知键或旧版(v0.9 之前)的扁平键会在启动时报错并给出迁移提示,不会再静默回退到默认值。

yaml
server:  port: 8043                   # 服务监听端口  rateLimit: 60                # 最大并发处理请求数,超出返回 429  upstreamLimit: 60            # 程序向上游 WHOIS/RDAP 服务器发起的最大并发查询数(默认等于 rateLimit,批量与 MCP 查询同样计入)  # metricsAddr: "127.0.0.1:9100"  # 设置后 /metrics 改在此地址单独提供(不需要密钥),主端口不再提供;留空(默认)则仍在主端口
log:  level: "info"                # 日志级别:debug、info、warn、error(默认:info)
cache:  expiration: 3600             # 缓存过期时间,单位:秒(默认:3600)  negativeExpiration: 60       # “未找到/被拒”结果的缓存时间,单位:秒(默认: 60;设为负数则禁用)  requireRedis: false          # false=允许Redis失败时降级到内存缓存,true=Redis必须可用否则程序退出  memoryMaxSize: 10000         # 内存缓存最大条目数,超过此数量按 LRU 淘汰最久未使用条目(默认: 10000)  memoryMaxBytes: 268435456    # 内存缓存最大总字节数(键+值),超过此数量按 LRU 淘汰,即使未超过条目数上限(默认: 268435456,即 256 MiB)  memoryCleanInterval: 300     # 内存缓存过期数据清理间隔,单位:秒(默认: 300)
redis:  addr: "redis:6379"           # Redis服务器地址  password: ""                 # Redis密码,如无密码则留空  db: 0                        # Redis数据库编号  tls: false                   # 通过不可信网络连接 Redis 时建议开启 TLS  tlsSkipVerify: false         # 跳过证书校验(不推荐,仅自签名证书场景使用)
proxy:  server: ""                   # 代理服务器地址,留空表示不使用代理  username: ""                 # 代理服务器用户名(如需认证)  password: ""                 # 代理服务器密码(如需认证)  suffixes: []                 # 需要使用代理的TLD后缀列表;填 ["all"] 表示全部 RDAP 查询(含 IP、ASN)走代理
bootstrap:  interval: 86400              # RDAP 服务器列表从 IANA 刷新间隔,单位:秒;0 则禁用(推荐:86400)
auth:  keys: []                     # API 密钥列表。留空(默认)则服务完全开放;配置一个或多个密钥后,除 /health 和 /ready 外的所有端点都需要认证,请求时通过 "Authorization: Bearer <key>" 或 "X-API-Key: <key>" 携带密钥  # 列表项支持纯字符串,也支持对象形式(可命名、可按 key 限流):  # keys:  #   - "plain-secret"         # 匿名 key,自动命名 key1/key2/…  #   - key: "another-secret"  #     name: "ci"             # 显示名:出现在日志 client 字段和 Prometheus 指标中  #     rateLimit: 120         # 该 key 的速率限制(次/分钟);0 或缺省=不限
batch:  enabled: false               # POST /batch 批量查询端点(含 MCP 批量 tool),默认关闭;建议与 auth.keys 一起开启  maxItems: 10                 # 单批最多查询条数
mcp:  localhostProtection: false   # /mcp 端点的 DNS rebinding 保护:开启后只接受 Host 为 localhost 的请求。反向代理部署保持 false;本机直连部署建议设为 true

环境变量

所有配置项均可通过环境变量覆盖(优先级高于配置文件),适合 Docker/Kubernetes 等不便挂载配置文件的部署方式:

环境变量对应配置项默认值说明
WHOIS_PORTserver.port8043服务监听端口
WHOIS_RATE_LIMITserver.rateLimit100最大并发请求数
WHOIS_UPSTREAM_LIMITserver.upstreamLimit同 rateLimit最大并发上游查询数
WHOIS_METRICS_ADDRserver.metricsAddr空/metrics 的独立监听地址(如 127.0.0.1:9100)
WHOIS_LOG_LEVELlog.levelinfo日志级别:debug、info、warn、error
WHOIS_CACHE_EXPIRATIONcache.expiration3600缓存过期时间(秒)
WHOIS_NEGATIVE_CACHE_EXPIRATIONcache.negativeExpiration60负向缓存时间(秒),负数禁用
WHOIS_REQUIRE_REDIScache.requireRedisfalsetrue/1 时 Redis 不可用则启动失败
WHOIS_MEMORY_MAX_SIZEcache.memoryMaxSize10000内存缓存最大条目数
WHOIS_MEMORY_MAX_BYTEScache.memoryMaxBytes268435456内存缓存最大总字节数
WHOIS_MEMORY_CLEAN_INTERVALcache.memoryCleanInterval300内存缓存清理间隔(秒)
WHOIS_REDIS_ADDRredis.addr未设置Redis 地址;显式设为空(WHOIS_REDIS_ADDR=)则禁用 Redis 仅用内存缓存,配置后不可用时自动降级到内存缓存(除非开启 requireRedis)
WHOIS_REDIS_PASSWORDredis.password空Redis 密码
WHOIS_REDIS_DBredis.db0Redis 数据库编号
WHOIS_REDIS_TLSredis.tlsfalsetrue/1 启用 Redis TLS
WHOIS_REDIS_TLS_SKIP_VERIFYredis.tlsSkipVerifyfalsetrue/1 跳过证书校验(不推荐)
WHOIS_PROXY_SERVERproxy.server空代理服务器地址,空则不使用代理
WHOIS_PROXY_USERNAMEproxy.username空代理用户名
WHOIS_PROXY_PASSWORDproxy.password空代理密码
WHOIS_PROXY_SUFFIXESproxy.suffixes空走代理的 TLD 列表,逗号分隔(all 表示全部 RDAP 查询,含 IP、ASN)
WHOIS_BOOTSTRAP_INTERVALbootstrap.interval0(禁用)IANA RDAP 列表刷新间隔(秒);配置文件示例为 86400
WHOIS_AUTH_KEYSauth.keys空API 密钥,逗号分隔(仅纯 key 形式;命名/按 key 限流需配置文件)
WHOIS_BATCH_ENABLEDbatch.enabledfalsetrue/1 开启批量查询端点
WHOIS_BATCH_MAX_ITEMSbatch.maxItems10单批最多查询条数
WHOIS_MCP_LOCALHOST_PROTECTIONmcp.localhostProtectionfalsetrue/1 启用 /mcp 的 DNS rebinding 保护

布尔型变量只认 true 和 1,其余值视为 false。数值型变量解析失败时静默忽略并沿用配置文件/默认值。

纯环境变量部署示例(不挂载配置文件):

bash
docker run -d --name whois -p 8043:8043 \  -e WHOIS_REDIS_ADDR=redis:6379 \  -e WHOIS_BOOTSTRAP_INTERVAL=86400 \  -e WHOIS_AUTH_KEYS=secret1,secret2 \  --link redis:redis jinzeyang/whois

配置说明:

  • Redis配置:建议使用Redis以获得更好的性能和多实例缓存共享能力
  • 缓存过期时间:根据查询频率调整,建议3600秒
  • 内存缓存:Redis 不可用时的兜底,达到上限后按 LRU(最近最少使用)淘汰
  • 负向缓存:将“未找到/被拒”的查询结果短时间缓存,避免对不存在的资源反复请求上游;默认 60 秒
  • 并发限制:控制向上游服务器的请求频率,避免被限流。
  • 代理配置:某些TLD可能需要代理访问,可配置特定后缀使用代理。代理只作用于 RDAP 查询;WHOIS(43 端口)查询和 IANA 列表拉取始终直连。IP、ASN 查询没有 TLD,只有 all 能让它们走代理
  • 日志级别:debug 会输出每次缓存命中和上游查询,流量大时噪声较高;生产环境建议保持 info
  • RDAP 刷新间隔:服务启动时会立即从 IANA 拉取最新 RDAP 服务器列表,之后按此间隔定期刷新;编译进二进制的数据作为拉取失败时的兜底
  • API 认证:默认关闭。配置 auth.keys 后即启用,未携带有效密钥的请求返回 401(RFC 9457 problem+json);仅 /health 和 /ready 豁免,便于存活/就绪探针工作。/metrics 里有 whois_client_requests_total{client},任何一个密钥都能看到所有调用方的名称和请求量;把密钥分发给多个下游时,建议设置 server.metricsAddr,让 /metrics 只在内网地址上提供
  • key 命名与按 key 限流:auth.keys 的对象形式可为每个 key 设置显示名和速率限制。显示名出现在请求日志的 client 字段和 Prometheus 指标 whois_client_requests_total{client,status_code} 中,便于区分调用方;速率限制为 token bucket(次/分钟,允许一次性用完整分钟额度),超限返回 429 + Retry-After 头。批量查询按条数计入额度:一批 N 条消耗 N 个请求额度;/mcp 收到的 JSON-RPC 批量请求同样按其中的工具调用数计入
  • 批量查询:默认关闭。建议与 auth.keys 一起开启——开放实例提供批量查询等于放大被滥用打上游注册局的能力

⚠️ Warning: 限频针对的是程序向 whois 服务器发起的请求,而非用户向本程序发起的请求。例如,您将 server.upstreamLimit 设置为 50,那么程序同时向注册局 whois/RDAP 服务器发起的查询将不会超过 50 个,但是用户向本程序发起的请求不受限制。请您通过 Nginx 等工具对本程序进行限流,或为每个 API key 配置 rateLimit,以防止恶意请求。

运行

bash
./whois

注意: 本程序默认监听 8043 端口。

健康检查端点

服务提供以下健康检查端点:

端点描述
GET /health存活检查 - 服务运行即返回 200
GET /ready就绪检查 - 检查缓存和并发容量状态
GET /info运行时信息 - 版本、运行时间、Go 版本等
GET /metricsPrometheus 指标 - 请求计数、延迟、缓存命中率、上游查询耗时(指标清单与告警建议见 docs/metrics.md);设置 server.metricsAddr 后改在该地址提供
GET /openapi.jsonOpenAPI 3.1 规范 - 全部端点与响应 schema 的机器可读描述
POST /mcpMCP Streamable HTTP 端点 - 供 AI 助手集成使用
POST /batch批量查询 - 一次提交多个域名/IP/ASN(默认关闭,见 batch.enabled)

示例:

bash
curl http://localhost:8043/health
json
{  "status": "ok",  "timestamp": "2026-02-05T01:32:05Z",  "uptime": "10s",  "checks": {    "cache": {"status": "ok", "message": "redis"}  }}

进程守护(可选)

您可以使用 systemd 等工具将本程序设置为守护进程,以便在系统重启后自动运行。

bash
vim /etc/systemd/system/whois.service
ini
[Unit]Description=whoisAfter=network.target
[Service]Type=simpleUser=www-dataGroup=www-dataExecStart=/path/to/whois/whoisWorkingDirectory=/path/to/whoisRestart=on-failure
[Install]WantedBy=multi-user.target

使用

GET 请求

浏览器访问

部署后直接通过浏览器访问http://ip:端口/你想查的域名或ip或asn,默认端口8043,示例http://1.2.3.4:8043/examlpe.com,详细示例请参考下方

支持直接查询国际化域名(IDN,含中文、带变音符号等 Unicode 域名),程序会自动转换为 Punycode 后查询,例如 http://1.2.3.4:8043/例子.cn。

类型化查询路径

除根路径自动识别外,还提供 RFC 9082 风格的类型化路径,适合程序化调用——资源类型不匹配时直接返回 400,不会被识别成其他类型:

bash
curl http://localhost:8043/domain/example.comcurl http://localhost:8043/ip/192.0.2.1curl http://localhost:8043/autnum/205794    # 也接受 as205794 / AS205794

IP 查询支持 CIDR 前缀(根路径和 /ip/ 均可):

bash
curl http://localhost:8043/ip/192.0.2.0/24curl http://localhost:8043/2001:db8::/32
OpenAPI 规范

服务在 /openapi.json 提供 OpenAPI 3.1 描述文档,包含全部端点、响应 schema(RDAP 词汇)和错误格式,可直接导入 Postman/Swagger UI 等工具。

缓存与跨域
  • 成功响应带 X-Cache 头标识缓存状态:HIT(命中服务端缓存)、MISS(回源注册局)、REFRESH(?refresh 强制回源),以及 Cache-Control: public, max-age=<缓存秒数> 供客户端/CDN 缓存。
  • 成功响应(200)带强 ETag 头;请求时携带 If-None-Match: <etag> 可做条件重验证,内容未变化时返回 304 Not Modified(无响应体),/openapi.json 同样支持。
  • 所有响应带 Access-Control-Allow-Origin: *,可直接在浏览器前端跨域调用。
查询域名 Whois 信息
bash
curl http://localhost:8043/example.com

返回结果

json
{  "objectClassName": "domain",  "ldhName": "example.com",  "registrar": "RESERVED-Internet Assigned Numbers Authority",  "registrarIanaId": "376",  "status": [    "client delete prohibited",    "client transfer prohibited",    "client update prohibited"  ],  "registrationDate": "1995-08-14T04:00:00Z",  "expirationDate": "2026-08-13T04:00:00Z",  "lastChangedDate": "2025-08-14T07:01:34Z",  "nameservers": [    "a.iana-servers.net",    "b.iana-servers.net"  ],  "secureDNS": {    "delegationSigned": true,    "dsData": [      {        "keyTag": 370,        "algorithm": 13,        "digestType": 2,        "digest": "BE74359954660069D5C63D200C39F5603827D7DD02B56F120EE9F3A86764247C"      }    ]  },  "lastUpdateOfRdapDb": "2026-01-16T10:26:40Z"}

字段名与词汇遵循 RDAP(RFC 9083)规范:objectClassName 标识对象类型(domain / ip network / autnum),日期统一为 RFC 3339 UTC 格式。查询 IDN 域名时会额外返回 unicodeName 字段。对于无法解析的 ccTLD,返回 {"objectClassName": "domain", "unparsed": true, "rawText": "..."}。

查询域名原始 WHOIS 文本

添加 ?raw=1 参数可获取未解析的 WHOIS 原文(text/plain),仅支持域名查询(IP/ASN 走 RDAP,无原文形式)。原文查询直接访问 WHOIS 服务器(跳过 RDAP),若该 TLD 没有已知 WHOIS 服务器则返回 404。

bash
curl "http://localhost:8043/example.com?raw=1"
强制刷新缓存

添加 ?refresh=1 参数可跳过服务端缓存、强制向注册局查询并用新结果覆盖缓存(响应带 X-Cache: REFRESH),适合域名转移/续费后立即查看新状态。仅在开启 API 认证的实例上可用:未配置 auth.keys 的实例返回 403(refresh-requires-auth)——否则任何人都能借此击穿缓存刷上游注册局。可与 ?raw 叠加使用。

bash
curl -H "X-API-Key: your-secret-key" "http://localhost:8043/example.com?refresh=1"
批量查询

POST /batch 一次提交多个查询(域名/IP/CIDR/ASN 可混排,自动识别类型),逐项返回结果。默认关闭,需配置 batch.enabled: true;单批条数上限 batch.maxItems(默认 10)。

bash
curl -X POST -H "X-API-Key: your-secret-key" -H "Content-Type: application/json" \  -d '{"queries": ["example.com", "8.8.8.8", "AS15169"]}' \  http://localhost:8043/batch

响应恒为 200,逐项给出状态:成功项的 data 是常规响应对象,失败项的 error 是 problem+json 对象:

json
{  "results": [    {"query": "example.com", "status": 200, "data": {"objectClassName": "domain", "ldhName": "example.com"}},    {"query": "nx.invalid", "status": 404, "error": {"type": "...#not-found", "title": "Resource not found", "status": 404}}  ]}

配置了按 key 限流时,一批 N 条会消耗 N 个请求额度,无法借批量绕过限流。批内重复查询会被合并为一次上游请求。

请求追踪

每个响应都带有 X-Request-ID 头,服务端日志中的 request_id 字段与之对应,便于排查问题。客户端也可自带 X-Request-ID 请求头(≤64 字符,仅限字母、数字、.、_、-),服务端将原样使用。

查询 IPv4 Whois 信息
bash
curl http://localhost:8043/1.12.34.56

返回结果

json
{  "objectClassName": "ip network",  "handle": "1.12.0.0 - 1.15.255.255",  "startAddress": "1.12.0.0",  "endAddress": "1.15.255.255",  "cidr": "1.12.0.0/14",  "cidrs": [    "1.12.0.0/14"  ],  "name": "TencentCloud",  "type": "ALLOCATED PORTABLE",  "country": "CN",  "status": [    "active"  ],  "registrationDate": "2010-05-10T22:46:58Z",  "lastChangedDate": "2023-11-28T00:51:33Z",  "remarks": [    {      "title": "description",      "description": [        "Tencent cloud computing (Beijing) Co., Ltd.",        "Floor 6, Yinke Building,38 Haidian St,",        "Haidian District Beijing"      ]    }  ]}
查询 IPv6 Whois 信息
bash
curl http://localhost:8043/2402:4e00::

返回结果

json
{  "objectClassName": "ip network",  "handle": "2402:4e00::/32",  "startAddress": "2402:4e00::",  "endAddress": "2402:4e00:ffff:ffff:ffff:ffff:ffff:ffff",  "cidr": "2402:4e00::/32",  "cidrs": [    "2402:4e00::/32"  ],  "name": "TencentCloud",  "type": "ALLOCATED PORTABLE",  "country": "CN",  "status": [    "active"  ],  "registrationDate": "2010-05-12T23:13:32Z",  "lastChangedDate": "2024-01-31T06:27:10Z",  "remarks": [    {      "title": "description",      "description": [        "Tencent cloud computing (Beijing) Co., Ltd.",        "Floor 6, Yinke Building,38 Haidian St,Haidian District Beijing"      ]    }  ]}
查询 ASN Whois 信息
bash
curl http://localhost:8043/ASN205794curl http://localhost:8043/AS205794curl http://localhost:8043/205794

⚠ 不区分大小写

返回结果

json
{  "objectClassName": "autnum",  "handle": "AS205794",  "name": "RTTW-AS",  "status": [    "active"  ],  "registrationDate": "2022-04-14T12:24:55Z",  "lastChangedDate": "2024-03-21T07:27:44Z",  "remarks": [    {      "title": "",      "description": [        "https://as205794.net/",        "Geofeed https://geo.as205794.net/geofeed.csv",        "Looking Glass https://lg.as205794.net/"      ]    }  ]}
错误响应

错误响应遵循 RFC 9457 Problem Details 规范,Content-Type 为 application/problem+json:

json
{  "type": "https://github.com/KincaidYang/whois/blob/main/docs/errors.md#not-found",  "title": "Resource not found",  "status": 404}

全部错误类型见 docs/errors.md。

MCP 集成

服务在 /mcp 提供 MCP(Model Context Protocol) 端点,使用 Streamable HTTP 传输,支持 AI 助手(如 Claude)将 WHOIS 查询作为工具直接调用。

工具名: whois_lookup

输入:

json
{ "query": "example.com" }

支持域名、IPv4/v6 地址或 CIDR 前缀、ASN(如 AS12345),返回结果与 REST API 完全一致。

工具名: whois_batch_lookup(需开启 batch.enabled)

输入:

json
{ "queries": ["example.com", "8.8.8.8", "AS15169"] }

逐项返回结果,与 POST /batch 行为一致(同样受 batch.maxItems 与按 key 限流约束)。

MCP 服务器地址: http://ip:端口/mcp

客户端接入配置与认证方式见 docs/mcp.md。

版本与稳定性

自 v1.0.0 起,本项目遵循语义化版本。以下面向用户的契约在 1.x 内保持稳定,不兼容变更只会出现在下一个主版本(2.0.0):

  • HTTP API:端点路径与语义、成功响应的 JSON 字段(RDAP 词汇,RFC 9083)、错误格式(RFC 9457 problem+json),以及缓存与条件请求相关的响应头(X-Cache、Cache-Control、ETag)。
  • 配置文件:config.yaml 的分组结构与键名,以及 WHOIS_* 环境变量。
  • MCP 工具:whois_lookup / whois_batch_lookup 的名称与输入参数。

不在稳定承诺范围内:注册局上游数据本身的内容与可用字段(随各注册局而变)、Prometheus 指标名称、日志格式,以及 Go 包的内部结构(本模块不对外暴露可导入的 API)。

0.x 阶段的破坏性变更已结束,完整历史见 CHANGELOG。

已知问题

程序向注册局查询 Whois 信息主要依靠 RDAP 协议查询,但由于大部分 ccTLD 不支持 RDAP 协议,程序会对其原始的 Whois 信息格式化后返回 JSON 数据。由于本人精力有限,未对所有的 ccTLD 后缀进行适配,未适配的后缀会返回 {"objectClassName": "domain", "unparsed": true, "rawText": "..."},如您常用的后缀没有被覆盖,可以提交 Issue 或者贡献匹配规则至 internal/whois/whois_parsers.go 文件中,在此表示感谢!

项目依赖

本项目使用了以下Go标准库:

  • bytes:操作字节切片的函数。
  • context:定义了Context类型,用于在API边界和进程之间传递截止日期、取消信号和其他请求范围的值。
  • encoding/json:编码和解码JSON对象的函数。
  • errors:创建错误和操作错误的函数。
  • fmt:格式化I/O函数。
  • io:I/O原语函数。
  • log/slog:结构化日志服务。
  • net:网络I/O原语的函数。
  • net/http:HTTP客户端和服务器实现。
  • os:操作系统功能的函数。
  • os/signal:接收操作系统信号的函数。
  • regexp:正则表达式搜索。
  • strconv:将字符串转换为基本类型的函数。
  • strings:操作字符串的函数。
  • sync:基本的同步原语。
  • syscall:访问操作系统底层调用的函数。
  • time:测量和显示时间的函数。

本项目还使用了以下第三方库:

WHOIS/RDAP 服务器列表来自于:

Source: README.md at commit 66f8d8e

Tools

2

whois_batch_lookup

Bulk WHOIS/RDAP lookup

Query WHOIS/RDAP information for multiple domain names, IP addresses/CIDR prefixes, or ASNs in one call. Results are returned per query with individual statuses. Disabled unless the operator enables batch queries.

Parametersqueriesrequired

whois_lookup

WHOIS/RDAP lookup

Query WHOIS/RDAP information for a domain name, IP address or CIDR prefix (v4 or v6), or ASN

Parametersqueryrequired

Version history

5
  1. v1.6.0LatestNov 11, 2026
  2. v1.5.0Oct 24, 2026
  3. v1.4.1Oct 23, 2026
  4. v1.4.0Sep 26, 2026
  5. v1.3.0Sep 16, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts