You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
805 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# nslookup
## 说明
**nslookup命令** 是常用域名查询工具就是查DNS信息用的命令
nslookup4有两种工作模式即“交互模式”和“非交互模式”。在“交互模式”下用户可以向域名服务器查询各类主机、域名的信息或者输出域名中的
主机列表。而在“非交互模式”下,用户可以针对一个主机或域名仅仅获取特定的名称或所需信息
输入nslookup命令直接进入交互模式此时nslookup会连接到默认的域名服务器即`/etc/resolv.conf`的第一个dns地址。或者输入
`nslookup -nameserver/ip`。进入非交互模式,就直接输入`nslookup 域名`就可以
## 选项
```markdown
-sil不显示任何警告信息
```
## 实例
```bash
nslookup www.jsdig.com
```