-1

I have downloaded the official BIND 9 Windows binaries from ISC. They don't do anything:

$ .\host.exe google.com
$ (no output)

Same with dig. How do I make host, dig etc work on Windows?

mikemaccana
  • 3,070
  • 5
  • 24
  • 29

1 Answers1

2

Simply unzipping the file won't work as various runtimes need to be installed. There's an installer inside the .zip called BINDinstall.exe - run that as Administrator and select Tools Only.

enter image description here

C:\Program Files\ISC BIND 9\bin $ .\host.exe -t MX certsimple.com 8.8.8.8
Using domain server:
Name: 8.8.8.8
Address: 8.8.8.8#53
Aliases:

certsimple.com mail is handled by 1 aspmx.l.google.com.
certsimple.com mail is handled by 5 alt1.aspmx.l.google.com.
certsimple.com mail is handled by 5 alt2.aspmx.l.google.com.
certsimple.com mail is handled by 10 alt3.aspmx.l.google.com.
certsimple.com mail is handled by 10 alt4.aspmx.l.google.com.
mikemaccana
  • 3,070
  • 5
  • 24
  • 29
  • 2
    Iirc just unzipping the file also works assuming you keep all the dependencies around (the dlls in that same dir) and have the needed vcredist version already installed. But yes, running the installer is clearly the intended way of using it. – Håkan Lindqvist Jul 20 '18 at 21:04
  • Yeah @HåkanLindqvist you're right - it seems to work now with just the unzipped files. I think running the installer must have added some DLL etc that I didn't have before. – mikemaccana Jul 20 '18 at 21:06