Install dig command under Windows system
dig is a tool for DNS query information under Linux, the full name is Domain Information Groper, similar to nslookup, but more powerful than nslookup. Windows only nslookup, if you need to use dig command, you need to install it yourself.
I. Software Download
dig as part of bind, where you need to download the latest version of the software, select a mirror site, click to enter, for example:
ftp://ftp.nominum.com/pub/isc/bind9/
If your computer is 64-bit, you need to download 64-bit software, download address:
ftp://ftp.nominum.com/pub/isc/bind9/9.9.9/BIND9.9.9.x64.zip
If your computer is 32-bit, you need to download 32-bit software, download address:
ftp://ftp.nominum.com/pub/isc/bind9/9.9.9/BIND9.9.9.x32.zip
Because my computer system is 64 bit, here I download 64 bit software
Unzip the downloaded package, right-click vcredist_x64.exe, and copy all dll files to C:\Windows\System32\
Then copy dig.exe to C:\Windows\System32\directory as well:
Here, dig installation is complete, open cmd to verify:
If you want to use Google Public DNS for dig queries, you need to add a file called resolv.conf to the C: \Windows\Systemctl32\drivers\etc\directory. It reads as follows:
nameserver 8.8.8.8
nameserver 8.8.4.4
dig www.google.com
At this point, the windows installation dig command is complete.