I found out there’s a dig command for Windows.
I group small tools like this inside a bin folder. But dig relies on a set of DLLs, that should also be in the PATH, so I put them in the same bin folder.
These are the DLLs dig.exe needs:
- libbind9.dll
- libcrypto-1_1-x64.dll
- libdns.dll
- libirs.dll
- libisc.dll
- libisccfg.dll
- libuv.dll
- libxml2.dll
I used procmon on my Win10 machine to figure out which DLLs are needed, as you get no error message (there’s probably a registry setting for that).
I do have a Windows 7 VM, that I can also use to figure out which DLLs are missing because it displays an error message:
And you might also need to install the Visual C redistribuable that is included with the downloaded ZIP:
And now I can run dig from my bin folder:
[…] Didier StevensQuickpost: dig On Windows […]
Pingback by Week 37 – 2020 – This Week In 4n6 — Sunday 13 September 2020 @ 13:38
WSL 2 works great and gives you virtually all, if not all, the benefits and abilities of Linux commands on a Windows system.
Comment by Robert Strom — Tuesday 29 September 2020 @ 6:49
Indeed, that is another solution. I looked at dig.exe, because I have a UMPC with Windows 10, and a very small internal SSD. Installing WSL on that device would take up too much resources.
Comment by Didier Stevens — Wednesday 30 September 2020 @ 16:03