Install the Dig command under window

Source: Internet
Author: User
Tags nameserver nslookup

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.