nslookup命令总结

 nslookup - query Internet name servers interactively  查询Internet名称服务器。
SYNOPSIS
       nslookup [-option] [name | -] [server]
DESCRIPTION    描述
       Nslookup is a program to query Internet domain name servers.  Nslookup has two modes: interactive and non-interactive.
       Interactive mode allows the user to query name servers for information about various hosts and domains or to print a list
       of hosts in a domain. Non-interactive mode is used to print just the name and requested information for a host or domain.
Nslookup是一个用来查询互联网域名服务器的程序,网路资讯查询有两种模式,交互式的与非交互式的,交互模式允许用户查询有关各种主机和域的信息或打印列表域内的主机,非交互模式用于仅打印主机或域的名称和请求信息。
ARGUMENTS   参数
       Interactive mode is entered in the following cases:   在以下情况下输入交互模式:
       1.  when no arguments are given (the default name server will be used)  当没有给出参数时(默认的名称服务器将被使用
       2.  when the first argument is a hyphen (-) and the second argument is the host name or Internet address of a name server.     当第一个参数是连字符(-)时,第二个参数是名称服务器的主机名或Internet地址
Non-interactive mode is used when the name or Internet address of the host to be looked up is given as the first argument. The optional second argument specifies the host name or address of a name server.       当查找的主机的名称或Internet地址作为第一个参数时,使用非交互模式。可选的第二个参数指定名称服务器的主机名或地址。
Options can also be specified on the command line if they precede the arguments and are prefixed with a hyphen. For example, to
change the default query type to host information, and the initial timeout to 10 seconds, type:    还可以在命令行中指定选项,如果选项在参数之前,并以连字符作为前缀,例如:若要将默认查询类型更改为主机信息,初始超时更改为10秒,请输入:
 
    nslookup -query=hinfo  -timeout=10
INTERACTIVE COMMANDS    交互式命令
       host [server]   主机名
           Look up information for host using the current default server or using server, if specified. If host is an Internet
           address and the query type is A or PTR, the name of the host is returned. If host is a name and does not have a
           trailing period, the search list is used to qualify the name.    如果指定,请使用当前默认服务器或使用服务器查找主机信息。 如果主机是一个Internet地址,而查询类型是A或PTR,则返回主机的名称。
                                    如果主机是一个名称,并且没有末尾的句号,则使用搜索列表来限定名称。
           To look up a host not in the current domain, append a period to the name.   要查找不在当前域中的主机,请在名称后面附加一个句点。
server domain 
lserver domain
           Change the default server to domain; lserver uses the initial server to look up information about domain, while server
           uses the current default server. If an authoritative answer can’t be found, the names of servers that might have the
           answer are returned.    将默认服务器更改为domain;lserver使用初始服务器查找域信息,而服务器使用当前默认服务器。如果无法找到权威的答案,则返回可能有答案的服务器的名称。

       root
           not implemented   没有实现
       finger  
           not implemented
       ls 
           not implemented
       view
           not implemented
       help
           not implemented
       ?
           not implemented
       exit   退出
           Exits the program.  退出程序。
       set keyword[=value]
           This command is used to change state information that affects the lookups. Valid keywords are:此命令用于更改影响查找的状态信息。有效的关键词是:
               all   所有
                   Prints the current values of the frequently used options to set. Information about the current default server
                   and host is also printed.   打印要设置的常用选项的当前值。还将打印关于当前默认服务器和主机的信息。
               class=value
                   Change the query class to one of:  将查询类更改为:
                       IN
                           the Internet class  互联网类
                       CH
                           the Chaos class  混乱的类
                       HS
                           the Hesiod class 赫西奥德类
                       ANY
                           wildcard
                       The class specifies the protocol group of the information. 类指定信息的协议组。
                       (Default = IN; abbreviation = cl)
                [no]debug(没有)调试
                   Turn on or off the display of the full response packet and any intermediate response packets when searching. 当搜索时,打开或关闭全部响应包和任何中间响应包的显示。
                   (Default = nodebug; abbreviation = [no]deb)
                [no]d2
                   Turn debugging mode on or off. This displays more about what nslookup is doing.  打开或关闭调试模式。这将显示更多关于nslookup所做的事情。
                   (Default = nod2)
               domain=name
                   Sets the search list to name.  设置搜索列表的名称。
                [no]search
                   If the lookup request contains at least one period but doesn’t end with a trailing period, append the domain
                   names in the domain search list to the request until an answer is received.  如果查找请求包含至少一个句点,但没有以一个尾句点结束,则将域搜索列表中的域名附加到请求中,直到收到一个答案。
                   (Default = search)
               port=value
                   Change the default TCP/UDP name server port to value.   将默认的TCP/UDP名称服务器端口更改为value。
                   (Default = 53; abbreviation = po)
               querytype=value
               type=value
                   Change the type of the information query.  更改信息查询的类型。
                   (Default = A; abbreviations = q, ty)
                [no]recurse
                   Tell the name server to query other servers if it does not have the information. 如果名称服务器没有这些信息,请告诉它查询其他服务器。
                   (Default = recurse; abbreviation = [no]rec)
               retry=number
                   Set the number of retries to number.       设置重试次数为编号。
:
               timeout=number
                   Change the initial timeout interval for waiting for a reply to number seconds.  更改等待应答到数秒的初始超时间隔。
                [no]vc
                   Always use a virtual circuit when sending requests to the server.  在向服务器发送请求时,总是使用虚拟电路。
                   (Default = novc)
                [no]fail
                   Try the next nameserver if a nameserver responds with SERVFAIL or a referral (nofail) or terminate query (fail)   如果一个nameserver用SERVFAIL或一个reference(nofail)或终止查询(fail)来响应这样的响应,请尝试下一个nameserver。
                   on such a response.
                   (Default = nofail)
FILES  文件
       /etc/resolv.conf
SEE ALSO 另请参阅
       dig(1), host(1), named(8).
AUTHOR
       Andrew Cherenson
COPYRIGHT
       Copyright  2004-2007, 2010 Internet Systems Consortium, Inc. ("ISC")
BIND9                            Jun 30, 2000                      NSLOOKUP(1)
(END)


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值