| nslookup命令的英文全称为 “query Internet name server interactively ”。nslookup命令主要用来查询域名的DNS信息。在使用nslookup之前,先确保已经安装了它,nslookup属于bind-utils包下一个命令 。 nslookup有两种工作模式:“交互模式”和“非交互模式”。在命令行中直接输入nslookup,无需输入任何参数即进入交互模式,由“>”提示。  语法格式:nslookup [参数] [域名] 常用参数: | -sil | 不显示任何警告信息 |  | exit | 退出命令 |  | server | 指定解析域名的服务器地址 |  | set type=soa | 设置查询域名授权起始信息 |  | set type=a | 设置查询域名A记录 |  | set type=mx | 设置查询域名邮件交换记录 | 
 参考实例: 在非交互模式下查询域名基本信息: [root@linuxcool ~]# nslookup mb5.com.cn
Server:         180.76.76.76
Address:        180.76.76.76#53
Non-authoritative answer:
Name:    mb5.com.cn 
Address: 216.218.186.2
Name:    mb5.com.cn
Address: 2001:470:0:76::2 进入交互模式下查询域名信息: [root@linuxcool ~]# nslookup
>mb5.com.cn
Server:         180.76.76.76
Address:        180.76.76.76#53 
Non-authoritative answer:
Name:   mb5.com.cn
Address: 216.218.186.2
Name:   mb5.com.cn
Address: 2001:470:0:76::2
> 在交互模式下使用“set”选项设置域名查询类型进行查询: [root@linuxcool ~]# nslookup
>set type=mx     
>mb5.com.cn
Server:         180.76.76.76
Address:        180.76.76.76#53 
Non-authoritative answer:
mb5.com.cn  mail exchanger = 1 mb5.com.cn.
Authoritative answers can be found from:
mb5.com.cn  internet address = 216.218.186.2
mb5.com.cn  has AAAA address 2001:470:0:76::2 |