window 下安装 dig 命令
2017-05-04 10:18
609 查看
dig 是一个 Linux 下用来 DNS 查询信息的工具,全称是Domain Information Groper,与 nslookup 类似,但比 nslookup 功能更强大。Windows 下只有 nslookup,如果也想用到 dig 命令,就只能自己动手安装了。
dig 作为 bind 的一部分,官方网站如下:
http://www.bind9.net/download
下面来具体说说步骤,如何安装。选择一个镜像站点,点击进入,比如:
ftp://ftp.nominum.com/pub/isc/bind9/
选择最新版 9.9.7,如下图:
如果是 64 位,下载地址如下:
ftp://ftp.nominum.com/pub/isc/bind9/9.9.7/BIND9.9.7.x64.zip
如果是 32 位,下载地址如下:
ftp://ftp.nominum.com/pub/isc/bind9/9.9.7/BIND9.9.7.x86.zip这里以在 Windows 7 64 位下安装为例,解压 BIND9.9.7.x64.zip,双击 vcredist_x64.exe (如果是 32 位,则文件名为 vcredist_x86.exe)安装 Microsoft Visual C++ 2012 Redistribution。
然后再将所有的 dll 文件复制至 C:\Windows\System32\ 目录下。如下图所示:
然后再将 dig.exe 也复制至 C:\Windows\System32\ 目录下。至此,安装完成。
打开 cmd ,验证一下。如下图所示:
如果你想使用 Google Public DNS 来进行 dig 查询的话,那么需要在 C:\Windows\System32\drivers\etc\ 目录下添加一个名为 resolv.conf 的文件。
内容如下:
nameserver 8.8.8.8
nameserver 8.8.4.4查询结果如下图所示:
dig 作为 bind 的一部分,官方网站如下:
http://www.bind9.net/download
下面来具体说说步骤,如何安装。选择一个镜像站点,点击进入,比如:
ftp://ftp.nominum.com/pub/isc/bind9/
选择最新版 9.9.7,如下图:
如果是 64 位,下载地址如下:
ftp://ftp.nominum.com/pub/isc/bind9/9.9.7/BIND9.9.7.x64.zip
如果是 32 位,下载地址如下:
ftp://ftp.nominum.com/pub/isc/bind9/9.9.7/BIND9.9.7.x86.zip这里以在 Windows 7 64 位下安装为例,解压 BIND9.9.7.x64.zip,双击 vcredist_x64.exe (如果是 32 位,则文件名为 vcredist_x86.exe)安装 Microsoft Visual C++ 2012 Redistribution。
然后再将所有的 dll 文件复制至 C:\Windows\System32\ 目录下。如下图所示:
然后再将 dig.exe 也复制至 C:\Windows\System32\ 目录下。至此,安装完成。
打开 cmd ,验证一下。如下图所示:
如果你想使用 Google Public DNS 来进行 dig 查询的话,那么需要在 C:\Windows\System32\drivers\etc\ 目录下添加一个名为 resolv.conf 的文件。
内容如下:
nameserver 8.8.8.8
nameserver 8.8.4.4查询结果如下图所示:
相关文章推荐
- Windows 系统下安装 dig 命令
- window下 memecache安装及操作命令
- Windows 系统下安装dig命令
- windows 系统下安装 dig 命令和nslookup的用法及详例
- Window安装Anaconda后,conda不是内部或者外部命令
- Window安装Anaconda后,conda不是内部或者外部命令
- 树莓派安装 dig命令
- Windows 系统下安装 dig 命令
- nodejs在window环境下的安装配置和gulp命令的安装
- Windows系统下安装dig命令
- linux安装nslookup,dig,host命令
- windows 系统下安装 dig 命令和nslookup的用法及详例
- linux下dig和nslookup命令的安装
- Windows系统下安装dig命令
- nodejs在window环境下的安装配置和gulp命令的安装
- Window安装Anaconda后,conda不是内部或者外部命令
- Window下Redis安装及简单命令操作
- Windows系统下安装dig命令
- 在线 安装X Window System和GNOME,只要1行命令:
- dig命令 安装