如何返回主机名

由 Deadforg 在 04-28-2003 19:45 发表:

如何返回主机名

对于 未装防火墙的电脑使用ping 命令不像Win ping ip -a 那样能返回主机名

请问ping有无办法得到主机名

nmap 似乎只是端口也不能得到主机名


由 Deadforg 在 04-29-2003 00:13 发表:


没人知?


由 北南南北 在 04-30-2003 21:31 发表:


用host来试一下。

host IP地址 这样能得到主机名

host 域名 这样就能得到IP

但据我发现,host IP不能推断出主机名,但host的确是这样的一样测试主机名的命令

host

Usage: host [-aCdlrTwv] [-c class] [-n] [-N ndots] [-t type] [-W time]

[-R number] hostname [server]

-a is equivalent to -v -t *

-c specifies query class for non-IN data

-C compares SOA records on authoritative nameservers

-d is equivalent to -v

-l lists all hosts in a domain, using AXFR

-n Use the nibble form of IPv6 reverse lookup

-N changes the number of dots allowed before root lookup is done

-r disables recursive processing

-R specifies number of retries for UDP packets

-t specifies the query type

-T enables TCP/IP mode

-v enables verbose output

-w specifies to wait forever for a reply

-W specifies how long to wait for a reply

__________________<b

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus