Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unix command "host" - is there Windows equivalent? [closed]

Tags:

windows

host

I am on a Windows 7 machine and I was instructed to use the Unix command "host" as per this article:

https://devcenter.heroku.com/articles/custom-domains

however, host is not a valid command with Windows and even with bash on Windows I could find host installed.

Is there a Windows equivalent to "host"?

like image 548
Alexander Mills Avatar asked Feb 03 '14 05:02

Alexander Mills


People also ask

Is there a Windows equivalent of the Unix strings command?

The Sysinternals tool Strings is a Windows console program which can extract ASCII And Unicode strings from binary files.

What is the host command in Windows?

The HOST command executes external commands at the operating system level. For a Windows operating system, for example, this is equivalent to running commands from a command prompt in a command window. No output is displayed in a command window.

Is Windows Terminal same as command prompt?

Windows Terminal is a modern host application for the command-line shells you already love, like Command Prompt, PowerShell, and bash (via Windows Subsystem for Linux (WSL)).

What is host command in Unix?

On Unix-like operating systems, the host command is a DNS lookup utility, finding the IP address of a domain name. It also performs reverse lookups, finding the domain name associated with an IP address. This page describes the GNU/Linux version of host.


1 Answers

This question is more suited to Super User, but the command you're looking for is nslookup. Both are (at their most basic) used to look up IP addresses for hostnames. You can run cmd and do nslookup hostname the same way you'd do host hostname. If you need something other than the IP address, the command-line arguments will differ. Run nslookup with no arguments and type help at the prompt for details.

like image 167
Jim Stewart Avatar answered Oct 12 '22 02:10

Jim Stewart