免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 741 | 回复: 0
打印 上一主题 下一主题

host [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-13 00:31 |只看该作者 |倒序浏览
host
host [options]  name [server]
System administration command. Print information about hosts or zones in DNS. Hosts may be IP addresses or hostnames; host
converts IP addresses to hostnames by default and appends the local
domain to hosts without a trailing dot. Default servers are determined
in /etc/resolv.conf. For more information about hosts and zones, read Chapters 1 and 2 of DNS and BIND (O'Reilly).
Options
-a
Same as -t ANY.
-c class
Search for specified resource record class (IN, CH, CHAOS, HS, HESIOD, or ANY). Default is IN.
-d
Verbose output. Same as -v.
-l
List mode. This also performs a zone transfer for the named zone. Same as -t AXFR.
-n
Perform reverse lookups for IPv6 addresses using IP6.INT domain and "nibble" labels instead of IP6.ARPA and binary labels.
-r
Do not ask contacted server to query other servers, but require only the information that it has cached.
-t type
Look for type entries in the resource record. type may be any recognized query type, such as A, AXFR, CNAME, NS, SOA, SIG, or ANY. If name is a hostname, host will look for A records by default. If name is an IPv4 or IPv6 address, it will look for PTR records.
-v
Verbose. Include all fields from resource
record, even time-to-live and class, as well as "additional
information" and "authoritative nameservers" (provided by the remote
nameserver).
-w
Never give up on queried server.
-C
Display SOA records from all authoritative nameservers for the specified zone.
-N n
Consider names with fewer than n dots in them to be relative. Search for them in the domains listed in the search and domain directives of /etc/resolv.conf. The default is usually 1.
-R n
Retry query a maximum of n times. The default is 1.
-T
Use TCP instead of UDP to query nameserver. This is implied in queries that require TCP, such as AXFR requests.
-W n
Wait a maximum of n seconds for reply.
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/22178/showart_154715.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP