dig (búsqueda de DNS) especifique el servidor DNS en Windows
En Linux, usaríadig
para especificar un servidor DNS de 127.0.0.1 con el siguiente comando:
dig google.com @127.0.0.1
Instalé herramientas Bind para Windows (choco install bind-toolsonly
) ¿Cómo puedo ejecutar ese mismo comando? Obtuve el siguiente error:
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