【发布时间】:2016-08-05 02:43:14
【问题描述】:
在 Linux 中,我会使用 dig 指定 DNS 服务器为 127.0.0.1,并使用以下命令:
dig google.com @127.0.0.1
我为 windows (choco install bind-toolsonly) 安装了绑定工具。如何运行相同的命令?我收到以下错误:
PS C:\Users\jhilden> 挖掘 google.com @127.0.0.1
在行:1 字符:21
+ 挖掘 google.com @127.0.0.1
+ ~
引用运算符后缺少属性名称。
在行:1 字符:16
+ 挖掘 google.com @127.0.0.1
+ ~~~~
喷溅运算符“@”不能用于引用
表达。 '@127' 只能用作命令的参数。到
表达式中的引用变量使用“$127”。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingPropertyName
【问题讨论】:
标签: powershell dns dig