Unix命令“主机"; -Windows是否等效? [英] Unix command "host" - is there Windows equivalent?

查看:67
本文介绍了Unix命令“主机"; -Windows是否等效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 7机器上,并按照本文的指示使用Unix命令主机":

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

但是,host在Windows中不是有效命令,即使在Windows上使用bash也可以找到host.

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

是否有一个等同于主机"的Windows?

Is there a Windows equivalent to "host"?

推荐答案

此问题更适合超级用户,但您所使用的命令是寻找的是nslookup.两者(从最基本的角度来看)都用于查找主机名的IP地址.您可以像执行host hostname一样运行cmd并执行nslookup hostname.如果您需要IP地址以外的其他内容,则命令行参数将有所不同.运行不带任何参数的nslookup,并在提示符下键入help以获取详细信息.

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.

这篇关于Unix命令“主机"; -Windows是否等效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆