Skip to content

Releases: TYEclipse/dsh-netdoctor

v0.2.3

Choose a tag to compare

@TYEclipse TYEclipse released this 10 Sep 16:41

Fix: TLS probe on IP targets / 修复 IP 目标的 TLS 探测

  • Bug: check_tls (and the tls probe behind it) sent the target address as TLS SNI unconditionally. Modern Node (≥ 20) rejects SNI for IP literals — ERR_TLS_SNI: Setting the TLS ServerName to an IP address is not permitted — so probing any IP target threw instead of reporting the certificate.
  • Fix: SNI is now only sent for hostnames; IP targets let Node omit it automatically (RFC 6066 — SNI is not defined for IP addresses).
  • Regression test: covers both an IP handshake (127.0.0.1) and a hostname handshake (localhost) against the local self-signed fixture server.
  • Tooling: added the coverage ratchet gate (baseline 68.02%, run_tests.sh + .githooks/pre-commit); every code change must bump the version and may not lower coverage.

Test suite: 69 tests green (was 68).

v0.2.0 — WHOIS registry lookup + SOA/CAA DNS records

Choose a tag to compare

@TYEclipse TYEclipse released this 25 Aug 21:47

v0.2.0 (2026-08-26)

New tool: whois — WHOIS registry lookup over the classic TCP port 43 protocol:

  • Automatic registry discovery via the whois.iana.org referral chain
  • Best-effort TLD→registry fallback map (com/net/org/io/ai/co/me/xyz/app/dev/cn/uk/us/ca/…) for when IANA discovery is unreachable or returns no referral
  • ARIN as the default registry for IP literals
  • Raw WHOIS text (capped) plus a structured summary: registrar, statuses, created/updated/expiry dates, nameservers
  • Graceful error results (never throws on network failure)

Extended dns_lookup — now supports SOA and CAA record types (10 total).

Other

  • New config option whoisTimeoutMs (default 5000)
  • 68 offline tests (was 50); TLS daysRemaining assertion is now clock-independent
  • Still zero runtime dependencies — Node.js built-ins only

安装 / Install:

dsh plugin --profile web add github:TYEclipse/dsh-netdoctor
dsh plugin --profile web add github:TYEclipse/dsh-netdoctor#v0.2.0

中文摘要

v0.2.0 新增 whois 工具(经典 TCP 43 WHOIS 查询:IANA 引用链自动发现注册局 + 常见 TLD 兜底表 + IP 走 ARIN;返回原始文本 + 结构化摘要:注册商/状态/创建·更新·到期/NS),并给 dns_lookup 增加 SOA / CAA 记录类型(共 10 种)。新增 whoisTimeoutMs 配置;68 个离线测试;依旧零运行时依赖。\n

v0.1.0

Choose a tag to compare

@TYEclipse TYEclipse released this 20 Aug 16:15

dsh-netdoctor v0.1.0

网络诊断工具箱 Network diagnostics toolbox — 首发版本(历史发布补账 / historical release backfill)。

工具 Tools(6 探针)

  • dns_lookup / ping_host / check_port / check_tls / trace_route / my_ip

安装 Install

dsh plugin --profile <name> add github:TYEclipse/dsh-netdoctor

零运行时依赖(zero runtime dependencies)。