Microsoft Learn 官方文档示例;改用前请核对路径、目标和本机可用性。
nslookupnslookup set 是 Microsoft Learn Windows 命令参考中的命令或工具子命令。本页整理可核实的语法、参数和用法示例;适用版本、角色及运行环境请以官方来源为准。
nslookup
> set all [class | d2 | debug | domain | port | querytype | recurse | retry | root | search | srchlist | timeout | type | vc] [options]链接的 Microsoft Learn 文章是上游依据;命令是否可用取决于 Windows 版本、服务器角色、可选功能或交互式工具上下文。
Microsoft Learn 官方文档示例;改用前请核对路径、目标和本机可用性。
nslookupMicrosoft Learn 官方文档示例;改用前请核对路径、目标和本机可用性。
set type=AAAAMicrosoft Learn 官方文档示例;改用前请核对路径、目标和本机可用性。
set timeout=5| 参数 / 子句 | 说明 |
|---|---|
set all | 显示 nslookup 交互模式下的当前设置。 |
set class <value> | 设置查询类别,用于选择协议组。 |
set d2 / set debug | 启用详细调试输出或调试模式。 |
set domain <name> | 设置默认 DNS 域名。 |
set port <number> | 设置查询使用的 DNS 服务器端口。 |
set querytype <type> / set type <type> | 选择要查询的 DNS 资源记录类型。 |
set recurse | 请求 DNS 服务器执行递归查询。 |
set retry <number> | 设置 nslookup 重试查询的次数。 |
set root <server> | 选择查询使用的根服务器。 |
set search / set srchlist <domains> | 启用搜索列表后缀,或设置默认域搜索列表。 |
set timeout <seconds> | 设置等待 DNS 响应的初始时长。 |
set vc | 使用虚电路(TCP)发送请求。 |
set d2 | Microsoft Learn 列出的参数或子命令;所需格式与运行上下文请查看官方来源。 |
set debug | Microsoft Learn 列出的参数或子命令;所需格式与运行上下文请查看官方来源。 |
set root <root-server> | Microsoft Learn 列出的参数或子命令;所需格式与运行上下文请查看官方来源。 |
set search | Microsoft Learn 列出的参数或子命令;所需格式与运行上下文请查看官方来源。 |
set srchlist <domain-list> | Microsoft Learn 列出的参数或子命令;所需格式与运行上下文请查看官方来源。 |
执行前请核对命令和目标路径。修改文件、服务、账户、磁盘、权限或数据库的操作可能难以撤销;建议先在安全环境测试并保留备份。