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 functionality. Windows only Nslookup, if you want to use the dig command, you can only install it yourself.
Dig as part of BIND, the official website is as follows:
Http://www.bind9.net/download
Here is a concrete step, how to install.
Select a mirror site and click Enter, for example:
ftp://ftp.nominum.com/pub/isc/bind9/
Select the latest version of 9.9.7, such as:
650) this.width=650; "src=" Https://teddysun.com/wp-content/uploads/2015/bind_1.png "title=" Bind_1 "class=" left " Style= "Height:auto;vertical-align:middle;border:0px;width:auto;" alt= "Bind_1.png"/>
If it is 64 bits, as follows:
Ftp://ftp.nominum.com/pub/isc/bind9/9.9.7/BIND9.9.7.x64.zip
If it is 32 bits, as follows:
Ftp://ftp.nominum.com/pub/isc/bind9/9.9.7/BIND9.9.7.x86.zip
Here to install under Windows 7 64-bit as an example, unzip Bind9.9.7.x64.zip, double-click vcredist_x64.exe (if 32 bit, the file name is Vcredist_x86.exe) install Microsoft V Isual C + + redistribution.
Then copy all the DLL files to the C:\Windows\System32\ directory. As shown in the following:
650) this.width=650; "src=" Https://teddysun.com/wp-content/uploads/2015/bind_2.png "title=" Bind_2 "class=" left " Style= "Height:auto;vertical-align:middle;border:0px;width:auto;" alt= "Bind_2.png"/>
The dig.exe is then copied to the C:\Windows\System32\ directory.
At this point, the installation is complete.
Open cmd and verify. As shown in the following:
650) this.width=650; "src=" Https://teddysun.com/wp-content/uploads/2015/bind_3.png "title=" Bind_3 "class=" left " Style= "Height:auto;vertical-align:middle;border:0px;width:auto;" alt= "Bind_3.png"/>
If you want to use Google public DNS for dig queries, you need to add a file named resolv.conf in the C:\Windows\System32\drivers\etc\ directory.
The contents are as follows:
NameServer 8.8.8.8
NameServer 8.8.4.4
The query results are as follows:
650) this.width=650; "src=" Https://teddysun.com/wp-content/uploads/2015/bind_4.png "title=" Bind_4 "class=" left " Style= "Height:auto;vertical-align:middle;border:0px;width:auto;" alt= "Bind_4.png"/>
This article is from the "Bulajunjun" blog, make sure to keep this source http://5148737.blog.51cto.com/5138737/1921876
Install the Dig command under window