Windows安装dig工具
dig是解析域名的工具,非常好用,通常是在伴随着bind包的
在linux系统中非常好安装,只需要安装bind9或者named就能有这个工具
那windows中要如何安装呢?
使用 Chocolatey(Windows 包管理器)
安装 Chocolatey
以管理员身份打开 PowerShell
运行以下命令:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
安装 bind-toolsonly
dig 工具是 bind-utils 包的一部分,所以可以通过安装 bind-toolsonly 包,来获得dig工具
在 PowerShell 中运行:
choco install bind-toolsonly
验证安装
安装完成,可以验证一下
dig -v
DiG 9.16.28
本文来自博客园,作者:厚礼蝎,转载请注明原文链接:https://www.cnblogs.com/guangdelw/p/18729338

浙公网安备 33010602011771号