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
posted @ 2025-02-21 15:52  厚礼蝎  阅读(842)  评论(0)    收藏  举报