【问题标题】:Powershell Get Record Txt DNS (Windows 7)Powershell 获取记录 Txt DNS (Windows 7)
【发布时间】:2021-02-19 05:21:06
【问题描述】:

我需要获取包含在 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 记录

你能帮帮我吗?

【问题讨论】:

  • it does not work 是什么意思?输出错误?没有输出?错误信息? Edit 问题并在此处包含信息。不要添加评论,那些很难阅读,问题主体应该是自给自足的。

标签: powershell dns record txt


【解决方案1】:

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

nslookup -query=txt yourname

【讨论】:

    猜你喜欢
    • 2014-06-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-05
    • 2015-08-19
    • 2017-05-13
    • 2021-10-24
    相关资源
    最近更新 更多