Linux nslookup命令帮助和DNS查找示例


当前第2页 返回上一页

1

# nslookup -query=any google.com

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

Server:         8.8.8.8

Address:        8.8.8.8#53

Non-authoritative answer:

Name:   google.com

Address: 216.58.219.206

google.com      has AAAA address 2607:f8b0:4006:80e::200e

google.com      mail exchanger = 20 alt1.aspmx.l.google.com.

google.com      mail exchanger = 40 alt3.aspmx.l.google.com.

google.com      nameserver = ns2.google.com.

google.com      nameserver = ns4.google.com.

google.com      nameserver = ns3.google.com.

google.com      rdata_257 = 0 issue "pki.goog"

google.com      mail exchanger = 30 alt2.aspmx.l.google.com.

google.com      mail exchanger = 10 aspmx.l.google.com.

google.com      mail exchanger = 50 alt4.aspmx.l.google.com.

google.com      text = "v=spf1 include:_spf.google.com ~all"

google.com      nameserver = ns1.google.com.

google.com      rdata_257 = 0 issue "symantec.com"

google.com

        origin = ns2.google.com

        mail addr = dns-admin.google.com

        serial = 159912615

        refresh = 900

        retry = 900

        expire = 1800

        minimum = 60

Authoritative answers can be found from:

Nslookup在交互模式下

我们也可以在交互模式中使用nslookup。要进入交互模式,请在控制台上输入nslookup,然后按Enter。将得到nslookup提示,如>。在这里,可以运行相同的查询并从DNS服务器获取域的信息。为了更好的理解,在命令之间添加了注释。

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

root@tecadmin:~#nslookup

### Type domain name to get information from dns server

> google.com

Server:         8.8.8.8

Address:        8.8.8.8#53

 

Non-authoritative answer:

Name:   google.com

Address: 172.217.10.46

 

### Set the another specific dns server to query.

> server 8.8.4.4

Default server: 8.8.4.4

Address: 8.8.4.4#53

 

### Again try to get the dns information, This time nslookup connects to specified dns server.

> google.com

Server:         8.8.4.4

Address:        8.8.4.4#53

 

Non-authoritative answer:

Name:   google.com

Address: 172.217.10.46

 

### Set the query type. for example to get MX information set query=mx

> set query=mx

 

### Again try to get the dns information, This time nslookup will show MX information for domain

> google.com

Server:         8.8.4.4

Address:        8.8.4.4#53

 

Non-authoritative answer:

google.com      mail exchanger = 30 alt2.aspmx.l.google.com.

google.com      mail exchanger = 50 alt4.aspmx.l.google.com.

google.com      mail exchanger = 40 alt3.aspmx.l.google.com.

google.com      mail exchanger = 10 aspmx.l.google.com.

google.com      mail exchanger = 20 alt1.aspmx.l.google.com.

 

Authoritative answers can be found from:

本篇文章到这里就已经全部结束了,更多其他精彩内容可以关注php中文网的其他相关栏目教程!!!

以上就是Linux nslookup命令帮助和DNS查找示例的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

如何使用haproxy负载均衡mysql

ecs 实例子网划分和子网掩码表示方法

Linux如何查看显卡驱动是否安装

Linux与windows编码不一致如何解决

Linux中zip怎么解压

关于Linux启动流程的具体介绍

如何在Linux shell脚本中提示用户输入

Linux上磁盘热插拔是什么意思?

win10如何安装Linux子系统

Linux进程杀不死怎么办

更多相关阅读请进入《Linux》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...