
安装的时候参照 How to install DIG dns tool on windows 10 这个教程完成的。不过在使用的时候,却提示如下
PS C:\WINDOWS\system32> dig ; <<>> DiG 9.12.1 <<>> ;; global options: +cmd ;; connection timed out; no servers could be reached google 了一圈,都没看到这个问题。哪位 V 友知道如何解决呀?
1 EricXuu Aug 5, 2018 via Android 要不换用 wsl 里的 dig 吧 |
2 xiaoz Aug 5, 2018 via Android 检查指定 dig dns 没有,同时设置的 dns 是否有问题。 |
3 xiaoz Aug 5, 2018 via Android @xiaoz dig 可以单独指定 dns,如果不指定则用本机 dns,有个 resolve.conf 的配置文件。你可以先试试 dig @119.29.29.29 www.baidu.com 会超时不。 |
4 DannyVim OP @xiaoz ``` At line:1 char:10 + dig @119.29.29.29 www.baidu.com + ~ Missing property name after reference operator. At line:1 char:5 + dig @119.29.29.29 www.baidu.com + ~~~~ The splatting operator '@' cannot be used to reference variables in an expression. '@119' can be used only as an argument to a command. To reference variables in an expression use '$119'. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : MissingPropertyName ``` 会直接报错唉 |
5 lniwn Aug 5, 2018 via Android 直接下载 bind9,然后添加到 path,是最简单实用稳定的方法了。 |
7 hundan Aug 5, 2018 不清楚,但是可以试试 cygwin。用 cygwin 安装 bind9,然后把 bin 目录加到 path。 |
8 xiaoz Aug 5, 2018 @DannyVim 试试这个方法呢: https://faq.xiaoz.me/archives/125.html 就是楼上说的直接下载 bind 9 然后放到 system32 或者自己设定一个目录加入环境变量。 |
11 pigzilla Aug 5, 2018 因为你在 power shell 里面用的,@符有特殊意义。在 cmd 里面用即可。这么明显的报错,自己读一下不行吗。 |
12 presoul Aug 5, 2018 via Android |
13 genezx Jan 13, 2019 dig 9.12 有问题,用 9.11 就没问题了 |