您好,此任务用于描述 nslookup 实用程序中 Root 参数的作用。
问题是,当我尝试借助此参数更改某些内容时,会返回“无法识别的命令”
我做错了什么以及如何演示此参数的操作?
答案1
我做错了什么
=
您需要删除:周围的空格
> nslookup
Default Server: UnKnown
Address: xxx.xxx.xxx.xxx
> set root=a.root-servers.net
> ...
> exit
打印常用命令的信息
> ?
Commands: (identifiers are shown in uppercase, [] means optional)
NAME - print info about the host/domain NAME using default server
NAME1 NAME2 - as above, but use NAME2 as server
help or ? - print info on common commands
set OPTION - set an option
all - print options, current server and host
[no]debug - print debugging information
[no]d2 - print exhaustive debugging information
[no]defname - append domain name to each query
[no]recurse - ask for recursive answer to query
[no]search - use domain search list
[no]vc - always use a virtual circuit
domain=NAME - set default domain name to NAME
srchlist=N1[/N2/.../N6] - set domain to N1 and search list to N1,N2, etc.
root=NAME - set root server to NAME
retry=X - set number of retries to X
timeout=X - set initial time-out interval to X seconds
type=X - set query type (ex. A,AAAA,A+AAAA,ANY,CNAME,MX,NS,PTR,SOA,SRV)
querytype=X - same as type
class=X - set query class (ex. IN (Internet), ANY)
[no]msxfr - use MS fast zone transfer
ixfrver=X - current version to use in IXFR transfer request
server NAME - set default server to NAME, using current default server
lserver NAME - set default server to NAME, using initial server
root - set current default server to the root
ls [opt] DOMAIN [> FILE] - list addresses in DOMAIN (optional: output to FILE)
-a - list canonical names and aliases
-d - list all records
-t TYPE - list records of the given RFC record type (ex. A,CNAME,MX,NS,PTR etc.)
view FILE - sort an 'ls' output file and view it with pg
exit - exit the program
进一步阅读
- nslookup- 在名称服务器上查找 IP 地址。
答案2
我想我找到了你的问题。出于某种原因,当你已经在 nslookup 命令提示符中时,该设置似乎不起作用。
您应该做的是退出 nslookup 程序,然后从常规命令提示符使用以下命令:
nslookup /set root=yourserver.example.com
这应该可以解决您的问题。对我来说确实如此。