0

I am using git bash as a terminal to run code. I doing a course where it has asked us to use the host program to look up host names using DNS. However when I run nslookup it works fine.

screenshot of error

running host command

Mishal
  • 101
  • 3
  • In your screen shot it looks like you didn't actually run the host command, you just typed www.google.com as its own command. – Ryan Bolger May 12 '20 at 18:22
  • Yes I have just realised. I had run the host command and it said `bash: host: command not found`. Question updated with screenshot – Mishal May 12 '20 at 18:26
  • Git bash is not a complete Linux terminal environment. It only has a small subset of utilities available and `host` is not one of them. – Ryan Bolger May 12 '20 at 18:29
  • Is there any way it can be installed or what other alternatives can I use running on a Windows 10 enterprise system? – Mishal May 12 '20 at 18:30
  • [WSL](https://docs.microsoft.com/en-us/windows/wsl/install-win10) is the current solution for this. Cygwin is an older alternative. – Ryan Bolger May 12 '20 at 18:33
  • Thank you for your quick response! – Mishal May 12 '20 at 18:36

0 Answers0