标题: nslookup是一个什么样的命令啊!!!!!&a
penzhiyong
LU幼天使
Rank: 2



UID 2512
精华 0
积分 27
帖子 53
活跃指数 0
LU金币 2006 个
LU金条 0 个
阅读权限 20
注册 2003-11-15
 
发表于 2003-11-25 00:20  资料  个人空间  短消息  加为好友  添加 penzhiyong 为MSN好友 通过MSN和 penzhiyong 交谈 Yahoo!
我只知道和有DNS关, 具体用法是什么样的啊 有谁能教教吗





在茫茫人海中
两人相遇不易
当你收到这份真挚的祝福
请你用尽全身力气把头往强上撞
看到没有:
你眼前的无数星星就是我无限的祝福!
顶部
larryh
超级版主
Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17



LU爱心使者  
UID 133
精华 29
积分 4000
帖子 7387
活跃指数 261
LU金币 4067 个
LU金条 5409 个
阅读权限 251
注册 2003-9-26
 
发表于 2003-11-25 00:44  资料  个人空间  短消息  加为好友 
CODE

C:\>nslookup
Default Server:  ns.szptt.net.cn
Address:  202.96.134.133

> ?
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,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
finger [USER]   - finger the optional NAME at the current default host
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 type (e.g. A,CNAME,MX,NS,PTR etc.)
view FILE           - sort an 'ls' output file and view it with pg
exit            - exit the program

> www.yahoo.com
Server:  ns.szptt.net.cn
Address:  202.96.134.133

Non-authoritative answer:
Name:    www.yahoo.akadns.net
Addresses:  66.218.71.94, 66.218.71.95, 66.218.70.48, 66.218.71.86
         66.218.71.87, 66.218.71.89, 66.218.71.92, 66.218.71.93
Aliases:  www.yahoo.com

> server 202.96.128.68
Default Server:  dns.guangzhou.gd.cn
Address:  202.96.128.68

> set debug
> www.google.com
Server:  dns.guangzhou.gd.cn
Address:  202.96.128.68

------------
Got answer:
   HEADER:
       opcode = QUERY, id = 4, rcode = NOERROR
       header flags:  response, want recursion, recursion avail.
       questions = 1,  answers = 2,  authority records = 9,  additional = 7

   QUESTIONS:
       www.google.com, type = A, class = IN
   ANSWERS:
   ->  www.google.com
       canonical name = www.google.akadns.net
       ttl = 1053 (17 mins 33 secs)
   ->  www.google.akadns.net
       internet address = 216.239.57.99
       ttl = 51 (51 secs)
   AUTHORITY RECORDS:
   ->  akadns.net
       nameserver = zh.akadns.net
       ttl = 161407 (1 day 20 hours 50 mins 7 secs)
   ->  akadns.net
       nameserver = a-93.akadns.net
       ttl = 161407 (1 day 20 hours 50 mins 7 secs)
   ->  akadns.net
       nameserver = use2.akam.net
       ttl = 161407 (1 day 20 hours 50 mins 7 secs)
   ->  akadns.net
       nameserver = use4.akam.net
       ttl = 161407 (1 day 20 hours 50 mins 7 secs)
   ->  akadns.net
       nameserver = usw5.akam.net
       ttl = 161407 (1 day 20 hours 50 mins 7 secs)
   ->  akadns.net
       nameserver = asia3.akam.net
       ttl = 161407 (1 day 20 hours 50 mins 7 secs)
   ->  akadns.net
       nameserver = ns1-159.akam.net
       ttl = 161407 (1 day 20 hours 50 mins 7 secs)
   ->  akadns.net
       nameserver = zc.akadns.net
       ttl = 161407 (1 day 20 hours 50 mins 7 secs)
   ->  akadns.net
       nameserver = zf.akadns.net
       ttl = 161407 (1 day 20 hours 50 mins 7 secs)
   ADDITIONAL RECORDS:
   ->  zc.akadns.net
       internet address = 63.241.199.50
       ttl = 58747 (16 hours 19 mins 7 secs)
   ->  zh.akadns.net
       internet address = 63.208.48.42
       ttl = 59612 (16 hours 33 mins 32 secs)
   ->  a-93.akadns.net
       internet address = 193.108.91.93
       ttl = 59612 (16 hours 33 mins 32 secs)
   ->  use2.akam.net
       internet address = 63.209.170.136
       ttl = 59612 (16 hours 33 mins 32 secs)
   ->  use4.akam.net
       internet address = 80.67.67.182
       ttl = 59612 (16 hours 33 mins 32 secs)
   ->  usw5.akam.net
       internet address = 63.241.73.214
       ttl = 52038 (14 hours 27 mins 18 secs)
   ->  asia3.akam.net
       internet address = 193.108.154.9
       ttl = 58747 (16 hours 19 mins 7 secs)

------------
Non-authoritative answer:
Name:    www.google.akadns.net
Address:  216.239.57.99
Aliases:  www.google.com

>


在WIN2000下就有这个工具,命令很简单,如上所示。
连上INTERNET,各个命令试一下,应该就明白了。

顶部
 



当前时区 GMT+8, 现在时间是 2008-10-14 04:42
乐悠LoveUnix论坛-京ICP备05005823号

Thanks to Discuz!  © 2001-2007    Power by LoveUnix.net
Processed in 0.051021 second(s), 6 queries , Gzip enabled

清除 Cookies - 联系我们 - 乐悠LoveUnix - Archiver