【Linux】39.nslookup查看域名与其对应的ip

ubuntu和windows的cmd自带nslookup
用法如下:
nslookup mirrors.ustc.edu.cn,可以得到如下结果,域名mirrors.ustc.edu.cn对应的ip为202.141.160.110

Server:		172.16.201.220
Address:	172.16.201.220#53

Non-authoritative answer:
Name:	mirrors.ustc.edu.cn
Address: 202.141.160.110

也可以只输入nslookup,会进入>的界面,在>后面直接输入mirrors.ustc.edu.cn,见下

>mirrors.ustc.edu.cn
Server:		172.16.201.220
Address:	172.16.201.220#53

Non-authoritative answer:
Name:	mirrors.ustc.edu.cn
Address: 202.141.160.110

或者直接输入ip,也可以其对应得到域名:

> 202.141.160.110
Server:		172.16.201.220
Address:	172.16.201.220#53

Non-authoritative answer:
110.160.141.202.in-addr.arpa	name = mirrors.ustc.edu.cn.

Authoritative answers can be found from:
.	nameserver = i.root-servers.net.
.	nameserver = g.root-servers.net.
.	nameserver = a.root-servers.net.
.	nameserver = j.root-servers.net.
.	nameserver = l.root-servers.net.
.	nameserver = k.root-servers.net.
.	nameserver = b.root-servers.net.
.	nameserver = d.root-servers.net.
.	nameserver = f.root-servers.net.
.	nameserver = m.root-servers.net.
.	nameserver = c.root-servers.net.
.	nameserver = h.root-servers.net.
.	nameserver = e.root-servers.net.
    原文作者:Mister Zhu
    原文地址: https://blog.csdn.net/u011754972/article/details/121357879
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞