前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >[Linux] host dig nslookup查询域名的DNS解析

[Linux] host dig nslookup查询域名的DNS解析

作者头像
唯一Chat
发布2019-09-10 10:50:53
7.4K0
发布2019-09-10 10:50:53
举报
文章被收录于专栏:陶士涵的菜地
代码语言:javascript
复制
root@VM-38-204-ubuntu:~# host baidu.com    
baidu.com has address 220.181.57.216
baidu.com has address 123.125.114.144
baidu.com mail is handled by 15 mx.n.shifen.com.
baidu.com mail is handled by 20 mx1.baidu.com.
baidu.com mail is handled by 20 jpmx.baidu.com.
baidu.com mail is handled by 20 mx50.baidu.com.
baidu.com mail is handled by 10 mx.maillb.baidu.com.
代码语言:javascript
复制
root@VM-38-204-ubuntu:~# dig baidu.com

; <<>> DiG 9.10.3-P4-Ubuntu <<>> baidu.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12243
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;baidu.com.                     IN      A

;; ANSWER SECTION:
baidu.com.              547     IN      A       220.181.57.216
baidu.com.              547     IN      A       123.125.114.144

;; Query time: 0 msec
;; SERVER: 10.236.158.106#53(10.236.158.106)
;; WHEN: Wed Apr 17 11:19:07 CST 2019
;; MSG SIZE  rcvd: 70
代码语言:javascript
复制
root@VM-38-204-ubuntu:~# nslookup baidu.com    
Server:         10.236.158.106
Address:        10.236.158.106#53

Non-authoritative answer:
Name:   baidu.com
Address: 220.181.57.216
Name:   baidu.com
Address: 123.125.114.144
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019-04-17 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档