Jesin's Blog

Welcome to the Portal of Technology

  • Facebook
  • GitHub
  • Google+
  • RSS
  • Twitter
  • Home
  • Categories
    • Domains
    • Linux
    • Networking
    • PHP
    • Virtualization
    • Web Design
    • Web Servers
    • Windows
  • WordPress Plugins
    • Custom Error Pages
    • HTTP Digest Authentication
    • Mailgun Email Validator
  • Toolbox
    • DNS Lookup Tool
    • htdigest Generator Tool Online
    • htpasswd Generator Tool Online
    • HTTP Headers Lookup Tool
    • MD5 Encryption Tool
    • Open Port Check Tool
    • SHA-1 Encryption Tool
    • URL Encoding/Decoding Tool
  • About Me
  • Contact Me
  • Sitemap
Home ›
Windows ›
Dig command on Windows OS

Dig command on Windows OS

October 22, 2010 Windows Jesin A 27 Comments

windows category thumbnail

Download dig command tool for windows and perform advanced DNS queries using dig command on windows. The dig command which comes as a part of Linux is very useful for performing DNS lookups on domain names and provides detailed information like TTL and class type. It is now possible to use the dig command on windows also. I’ve included the dig package for windows with this post and also step-by-step instructions on how to use it.

Step 1:- Download dig for windows

The files required for dig command is available with BIND DNS software you can download the software from their official website unzip it and separate the files dig.exe, libbind9.dll, liblwres.dll, libisccfg.dll, libdns.dll, libisc.dll, libxml2.dll. For your convenience I’ve attached a zip file containing these files.

Download dig command for windows and extract the files to your hard disk.

Step 2:- Paste the files inside System32 folder

You’ll now have a total of 7 files, one exe file and six dll files. Paste all these files inside C:\Windows\System32. Replace C: drive with the partition where windows is installed. Do NOT create any folder inside System32 just paste the files inside it.

Step 3:- Text the dig command from the command-line

Press [windows key] + R or Start -> Run, type cmd and hit enter to fire up the windows command line tool. Type dig [domain name] -t [record] example dig example.com -t ns and you’ll see the following output

dig command on windows
dig command on windows displaying NS records for the domain example.com

For a complete list of parameters type dig -h

Related posts:

windows category thumbnailAdd Command Prompt on Right Click windows category thumbnailWindows Logon and Logoff Scripts windows category thumbnailHow to install Windows XP after Windows Vista/7 forgot mysql password windows smileyResetting MySQL root password in Windows windows category thumbnailUsing Sendmail on Windows

Tags: dns

Comments

  1. Don Butler says

    May 20, 2011 at 1:12 am

    I tried this on my Vista machine, but it failed with the message :
    “This application has failed to start because LIBEAY32.dll was not found.”

    Reply
    • A.Jesin says

      May 20, 2011 at 11:59 am

      The libeay32.dll is an OpenSSL shared library file. If it is missing in your system download libeay32.dll, extract and copy it to C:\WINDOWS\system32\

      Reply
  2. Man1nBlack says

    September 15, 2011 at 3:08 am

    mine crashes with error message you dont have libisc.dll which i do its in the folder??

    Reply
  3. Man1nBlack says

    September 15, 2011 at 3:13 am

    yeah it turned into the libeay32.dll error message so its all good now, you must extract the files first and then copy them over or it complains libisc is missing, strange but it works now thanks guys.

    Reply
  4. Sandgroper says

    October 7, 2011 at 11:01 pm

    Dig works great on my Win7 64 bit system after I downloaded the LIBEAY32.dll .

    Instead of copying the dig files to c:\windows\system32 , I put the them into a separate folder and then whacked a shortcut on the desktop with a CMD window opening up in that directory.
    I had missed using dig since I stopped using my linux box and having dig on my windows box is really good.

    Thanks.

    Reply
  5. Sohaeb Ahmad says

    October 2, 2013 at 6:53 pm

    Hi,
    i am using win7. I have downloaded, unzipped and copied above mentioned 7 files in system32 folder and after that also i have copied libeay32.dll file but still i am gettting the error of libisc.dll file missing.

    Kindly guide.

    Reply
    • Jesin A says

      October 2, 2013 at 8:29 pm

      Hi Sohaeb,

      I’ve uploaded the libisc.dll file. Download, unzip and place it in your system32 folder.

      Let me know if it works.

      Reply
      • Sohaeb Ahmad says

        October 2, 2013 at 9:03 pm

        Hi,
        No friend , its giving same error.

        Reply
        • Jesin A says

          October 2, 2013 at 9:11 pm

          I think you’re using a 64bit Windows 7.

          So copy all the DLL files – libbind9.dll, liblwres.dll, libisccfg.dll, libdns.dll, libisc.dll, libxml2.dll and place then in C:\Windows\SysWOW64.

        • Sohaeb Ahmad says

          October 2, 2013 at 9:24 pm

          Bravo….. it works…. I like genius guys like you 🙂

  6. mia says

    December 23, 2013 at 6:05 am

    Great it works. Thanks. I am using it on 64 bits Windows Vista and works great when I download all the files in “Windows/SysWOW64” folder.

    Thanks.

    Reply
  7. I.Adam says

    March 2, 2014 at 10:40 am

    Thanks for the nice article. I have a problem with dig though. When I write dig command on vista command prompt, it returns results but not automatically exit from dig. It remains there until I press Ctrl+C

    What to do to make at exit automatically?

    Reply
    • Jesin A says

      March 2, 2014 at 4:24 pm

      Looks like you are using dig v9.9.5 which has a bug that prevents dig from exiting properly after a UDP query.

      You can either add +tcp as a parameter to force a TCP query like dig +tcp websistent.com or download the latest 9.9.5-W1 from the link in this article.

      More info can be found in these release notes, first point under bug fixes.

      Reply
  8. ankit thakar says

    April 13, 2014 at 11:59 pm

    hey i am using windows7 64bit i have copied all the files in Syswow64 as well as sys32 but still not working i am getting error as below in my cmd prompt plz help me guys…

    C:\Windows\SysWOW64>dig http://www.google.com -t ns
    The application has failed to start because its side-by-side configuration is in
    correct. Please see the application event log or use the command-line sxstrace.exe tool for more detail.

    Reply
    • Jesin A says

      April 14, 2014 at 12:08 am

      What a coincidence I encountered the same error today !!!

      Download and install Microsoft Visual C++ 2005 Redistributable – http://www.microsoft.com/en-in/download/details.aspx?id=3387

      Reply
  9. ankit thakar says

    April 14, 2014 at 12:23 am

    though i am getting error…

    Reply
    • Jesin A says

      April 14, 2014 at 12:40 am

      Hmm maybe you need the x64 package too – http://www.microsoft.com/en-in/download/details.aspx?id=21254

      Reply
    • Jesin A says

      April 14, 2014 at 9:45 pm

      Download this ZIP archive and install vcredist_x86.exe from this package – http://www.isc.org/downloads/file/bind-9-9-5-w1/?version=zip

      Reply
      • ankit thakar says

        April 14, 2014 at 10:38 pm

        finally done thankyou so much

        Reply
  10. kyle999 says

    April 26, 2014 at 9:34 pm

    I did everything you said, I put files into system32 and systom64, and I still install vcredist_x86.exe.
    But it still said libisc.dll not found.

    Reply
    • Jesin A says

      April 27, 2014 at 1:40 am

      Kyle it isn’t system64 it is SysWOW64 inside C:\Windows

      Reply
      • kyle999 says

        April 27, 2014 at 5:57 am

        haha sorry I am foolish.
        but I copy and paste them into sysWOW64, it still cannot run.

        Reply
  11. taqi says

    October 22, 2014 at 5:40 pm

    thank you by serving us on this term

    Reply
  12. Igor Ganapolsky says

    June 21, 2016 at 6:30 am

    Unfortunately these DIG files don’t work at all. I get no output whatsoever on Windows 10. What could be wrong?

    Reply
  13. Subramanyam says

    November 25, 2016 at 11:16 pm

    I am able to run the dig but when i used + trace not getting complete output in this version

    Reply
  14. DiG GUI says

    January 7, 2018 at 2:22 pm

    DiG GUI
    dig command web interface
    https://www.diggui.com/

    Reply
  15. Mario says

    July 24, 2018 at 8:49 am

    Damn, I had a hard trying to find out the problem, so I did what you suggested of extracting the files to WOW64 and it worked, thank you for your help!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Get a wealth of information delivered to your inbox. Subscribe and never miss a single article.

  • Tutorials and howtos
  • Code, scripts and commands
  • Online Tools

* No spam, unsubscribe anytime

Hire Me

  • SSL installation and hardening (A+ on Qualys SSL test)
  • Apache & Nginx configuration
  • Email deliverability improvement (10/10 on Mail Tester & MailGenius)
  • WordPress customization, optimization and migration
  • and much more…

    Tools

    • DNS Lookup Tool
    • htdigest Generator Tool Online
    • htpasswd Generator Tool Online
    • HTTP Headers Lookup Tool
    • MD5 Encryption Tool
    • Open Port Check Tool
    • SHA-1 Encryption Tool
    • URL Encoding/Decoding Tool

    Nav

    • Home
    • About Me
    • Contact Me
    • Privacy Policy
    • Sitemap
    Vultr SSD VPS

    Creative Commons License
    Jesin's Blog by Jesin A is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
    Based on a work at websistent.com.