Agent Skillsryantsai/KKTerm › dns-dhcp-troubleshooter

dns-dhcp-troubleshooter

GitHub

诊断 KKTerm 环境下的 DNS 和 DHCP 故障,涵盖主机名解析错误、缓存过期、DHCP 租约异常及 VPN 影响。指导用户通过 Windows/WSH/Linux 命令排查网络配置与解析路径,区分本地与远程环境差异,避免硬编码公共 DNS,确保企业内网策略合规。

assistant-skills/dns-dhcp-troubleshooter/SKILL.md ryantsai/KKTerm

Trigger Scenarios

主机名解析失败或返回错误 IP 特定网络下 DNS 解析异常 连接 VPN 后出现网络问题 怀疑本地 IP、网关或 DNS 设置有误 DHCP 租约或地址分配异常

Install

npx skills add ryantsai/KKTerm --skill dns-dhcp-troubleshooter -g -y
More Options

Non-standard path

npx skills add https://github.com/ryantsai/KKTerm/tree/main/assistant-skills/dns-dhcp-troubleshooter -g -y

Use without installing

npx skills use ryantsai/KKTerm@dns-dhcp-troubleshooter

指定 Agent (Claude Code)

npx skills add ryantsai/KKTerm --skill dns-dhcp-troubleshooter -a claude-code -g -y

安装 repo 全部 skill

npx skills add ryantsai/KKTerm --all -g -y

预览 repo 内 skill

npx skills add ryantsai/KKTerm --list

SKILL.md

Frontmatter
{
    "name": "dns-dhcp-troubleshooter",
    "description": "Diagnose DNS and DHCP problems in KKTerm, including failed hostname lookup, wrong records, split DNS, stale cache, DHCP lease issues, gateway\/DNS option problems, and VPN DNS behavior."
}

DNS and DHCP Troubleshooter

Use this skill when a hostname resolves incorrectly, only works on some networks, fails after VPN changes, or the local machine has suspicious IP/gateway/DNS settings.

Workflow

  1. Determine whether the symptom is DNS, DHCP, or both: name lookup failure, wrong address, search suffix issue, no lease, wrong gateway, or wrong DNS server.
  2. Identify the resolver path: Windows DNS client, WSL resolver, VPN-provided DNS, remote SSH host resolver, or application-specific proxy.
  3. Ask for the exact hostname and expected network context, but do not ask for secrets or private zone contents beyond what is needed.
  4. Compare authoritative intent vs client result when available: expected record, actual answer, resolver used, TTL/cache behavior, and search suffix expansion.
  5. For split DNS, check whether the user is on the right VPN or network and whether the query is being sent to the internal resolver.
  6. For DHCP, inspect lease address, subnet mask, gateway, DNS servers, and lease age before suggesting renew/release actions.
  7. Avoid telling users to hard-code public DNS servers when private zones, VPNs, domain controllers, or corporate policy may be required.
  8. If flushing cache is suggested, explain that it removes cached client answers but does not fix authoritative records or resolver policy.

Command Guidance

  • Windows DNS: Resolve-DnsName <host>, nslookup <host>, Get-DnsClientCache, Get-DnsClientServerAddress.
  • Windows DHCP/interface: Get-NetIPConfiguration, ipconfig /all, ipconfig /renew only after confirming a local lease problem.
  • WSL/POSIX: getent hosts <host>, resolvectl query <host> when available, cat /etc/resolv.conf.
  • Remote SSH vantage point: run resolver checks on the remote host only when the question is about that remote network.

KKTerm Boundaries

  • DNS behavior can differ between local Windows terminal Sessions, WSL, SSH Sessions, and WebView2 URL Connections.
  • A Connection hostname is durable data, but DNS answers are runtime environment state.
  • Do not rewrite Connection hosts from names to IPs unless the user explicitly wants that tradeoff.

Version History

  • b4e2eb1 Current 2026-07-05 14:38

Same Skill Collection

assistant-skills/dashboard-data-visualization/SKILL.md
assistant-skills/dashboard-widget-builder/SKILL.md
assistant-skills/dashboard-widget-designer/SKILL.md
assistant-skills/desktop-accessibility-ui/SKILL.md
assistant-skills/firewall-port-troubleshooter/SKILL.md
assistant-skills/network-connectivity-troubleshooter/SKILL.md
assistant-skills/remote-desktop-helper/SKILL.md
assistant-skills/sftp-transfer-helper/SKILL.md
assistant-skills/ssh-troubleshooter/SKILL.md
assistant-skills/terminal-command-planner/SKILL.md
assistant-skills/tls-certificate-troubleshooter/SKILL.md

Metadata

Files
0
Version
b4e2eb1
Hash
e5fb79c5
Indexed
2026-07-05 14:38

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-14 11:52
浙ICP备14020137号-1 $Map of visitor$