0

我需要获取包含在 dns txt 记录中的身份验证密钥

这是我在 Windows 10 中的命令,但在 Windows 7 (Powershell 2.0) 中不起作用

$query = Resolve-DnsName -Type txt -name Key -ErrorAction SilentlyContinue

错误 = 未找到 Resolve-DnsName 命令

我需要 Powershell 2.0 的 Resolve-DnsName 等效项并获取 dns txt 记录

你能帮我吗 ?

4

1 回答 1

0

Windows 8.0 和 Windows Server 2012 附带的 DnsClient 模块。它不能在 Windows 7 上使用,您可以使用 nslookup :

nslookup -query=txt yourname
于 2020-11-06T16:08:16.860 回答