Cygwin dig command

Posted on Thursday, April 19, 2012


I used Cygwin a lot and I love it.  But Last time I did a search in the Cygwin setup for “dig” I get nothing.






















See nothing…

Well it turns out DIG is in in there somewhere


I had to install bind and openssl

First I searched for bind.   And I chose to install the bind package.
















Next I searched for openssl and chose to install the openssl package.











Then I clicked next a few times and installed these packages.  Then opened a Cygwin terminal and typed this.



       > which dig



Success!

As a test I ran


       >    dig www.google.com +short




Looks like it’s working just fine.  This one drove me nuts for a long time.

3 comments:

  1. Do not forget to set up /etc/resolv.conf:

    Start Cygwin Terminal as Administrator

    Find out your local DNS-Server by typing: ipconfig /all | grep -i dns-server

    Type: nano /etc/resolv.conf
    or which editor your are using in general (instead of nano)

    Add the line:
    nameserver [yourDnsServerAddress]
    e.g.: nameserver 192.168.100.1

    Save and exit

    ReplyDelete