#host www.youyeah.cn #使用/etc/resolv.conf内的DNS查找主机

显示如下:

www.youyeah.cn is an alias for youyeah.youyes.com.cn.
youyeah.youyes.com.cn is an alias for web088099.kingchance.com.
web088099.kingchance.com has address 113.106.88.99

#host -a www.youyeah.cn 8.8.8.8 #使用8.8.8.8的DNS查询www.youyeah.cn的主机信息,-a:显示详细信息


Trying "www.youyeah.cn"
Received 32 bytes from 8.8.8.8#53 in 8 ms
Trying "www.youyeah.cn.localdomain"
Using domain server:
Name: 8.8.8.8
Address: 8.8.8.8#53
Aliases:

Host www.youyeah.cn not found: 3(NXDOMAIN)
Received 119 bytes from 8.8.8.8#53 in 32 ms

nslookup:查找主机名对应的IP或者通过IP反查主机名,支持指定查询方式cname,mx

#nslookup www.youeyah.cn
#nslookup -query=mx youyeah.cn


Server: 202.96.134.133
Address: 202.96.134.133#53

Non-authoritative answer:
youyeah.cn mail exchanger = 10 mx.mail.ym.163.com.

Authoritative answers can be found from:
mx.mail.ym.163.com internet address = 123.58.178.51
mx.mail.ym.163.com internet address = 123.58.178.52
mx.mail.ym.163.com internet address = 123.58.178.60
mx.mail.ym.163.com internet address = 123.58.178.105

#nslookup 123.58.178.105 #反向查询主机名
- EOF -

评论

加载中