dig (Pesquisa DNS) especifica o servidor DNS no Windows
No Linux, eu usariadig
para especificar um servidor DNS de 127.0.0.1 com o seguinte comando:
dig google.com @127.0.0.1
Instalei as ferramentas Bind para Windows (choco install bind-toolsonly
) Como posso executar o mesmo comando? Estou tendo o erro a seguir:
PS C:\Users\jhilden> dig google.com @127.0.0.1 At line:1 char:21 + dig google.com @127.0.0.1 + ~ Missing property name after reference operator. At line:1 char:16 + dig google.com @127.0.0.1 + ~~~~ The splatting operator '@' cannot be used to reference variables in an expression. '@127' can be used only as an argument to a command. To reference variables in an expression use '$127'. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : MissingPropertyName