NSLOOKUP命令检查DNS服务
在Windows 的 DOS命令行窗口里,输入nslookup
然后
NsLookup www.oodd.net 202.96.134.133
这句话的意思就是,在深圳dns(202.96.134.133)里查询www.oodd.net的解释地址。
[(转)OpenDNS一个免费的DNS查询服务器 内录各地区DNS服务器IP地址]
附该命令的中文帮助
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
查询主机或域名,用NAME2做提交查询服务器
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