4. 反向解析,使用nslookup命令
#nslookup
[html] view plaincopy
- >
- > 172.16.1.51
- Server: 172.16.1.4
- Address: 172.16.1.4#53
- 51.1.16.172.in-addr.arpa name = 172-16-1-51.realhostip.com.
- >
- >
- > 172.16.1.50
- Server: 172.16.1.4
- Address: 172.16.1.4#53
- 50.1.16.172.in-addr.arpa name = 172-16-1-50.realhostip.com.
- >
- >
5. 查看realhostip.com这个域名是哪个DNS服务器管理的,使用dig命令
# dig -t ns realhostip.com
[html] view plaincopy
- ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.6 <<>> -t ns realhostip.com
- ;; global options: +cmd
- ;; Got answer:
- ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37964
- ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 2
- ;; QUESTION SECTION:
- ;realhostip.com. IN NS
- ;; ANSWER SECTION:
- realhostip.com. 86400 IN NS realhostip.com.
- ;; ADDITIONAL SECTION:
- realhostip.com. 86400 IN A 172.16.1.4
- realhostip.com. 86400 IN AAAA ::1
- ;; Query time: 1 msec
- ;; SERVER: 172.16.1.4#53(172.16.1.4)
- ;; WHEN: Wed Oct 23 14:15:22 2013
- ;; MSG SIZE rcvd: 90
6. 使用dig命令进行正向解析
# dig 172-16-1-50.realhostip.com
[html] view plaincopy
- ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.6 <<>> 172-16-1-50.realhostip.com
- ;; global options: +cmd
- ;; Got answer:
- ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21109
- ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
- ;; QUESTION SECTION:
- ;172-16-1-50.realhostip.com. IN A
- ;; ANSWER SECTION:
- 172-16-1-50.realhostip.com. 86400 IN A 172.16.1.50
- ;; AUTHORITY SECTION:
- realhostip.com. 86400 IN NS realhostip.com.
- ;; ADDITIONAL SECTION:
- realhostip.com. 86400 IN A 172.16.1.4
- realhostip.com. 86400 IN AAAA ::1
- ;; Query time: 1 msec
- ;; SERVER: 172.16.1.4#53(172.16.1.4)
- ;; WHEN: Wed Oct 23 14:17:57 2013
- ;; MSG SIZE rcvd: 118
windows客户端上只有nslookup工具 。
推荐阅读
- 海马300|客观评测下VS海马300米优点和缺点
- 辞职后还没找到下家,社保断缴了,影响居然这么大
- 吉利CMA架构下首款轿车来了,英文名曝光
- 使用了5000公里的汽车空气滤芯, 吹一下后能不能继续使用?
- 金庸认为最厉害的主角 金庸笔下最厉害的主角
- 内衣品牌前十名 爱美丽内衣是爱慕旗下的吗
- 淘宝卖家泄露以下哪些个人信息会被处罚? 淘宝买家信息是如何泄露
- 金庸笔下隐藏的十大高手 金庸承认的第一高手独孤求败
- linux 系统SVN服务搭建及windows系统svn迁移
- Docker下实战zabbix三部曲之三:自定义监控项