利用origin.asn.cymru.com使用dig命令反向查询IP对应的自治域号
2012-11-15 17:33
585 查看
DNS反向解析即由IP地址反查域名信息。
一般的dns反向解析可以使用dig -x参数加上IP地址即可,可以实现从IP地址反查注册域名信息。
如果需要查询该域名的详细注册信息,包括所在国家、省、市、联系方式等,可以使用whois命令,dig工具包含了whois命令,可以直接使用whois 加上IP地址即可,此外,有很多提供whois查询的网站也可以实现该功能。
如果需要查询该IP地址所在的自治域号则是一件比较麻烦的事情,一般如果使用whois查询,结果中含有origin字段,则表示其自治域号,不过一般的貌似都没有,在求助于中文网站无果后,开始求助外文网站,果然发现一个挺好的网站http://www.team-cymru.org/Services/ip-to-asn.html#whois,提供IP和ASN的映射。
例如我们要反查IP 2216.6.4,可以利用这个网站提供的服务器origin.asn.cymru.com,使用如下命令
# dig 4.6.6.221.origin.asn.cymru.com TXT
; <<>> DiG 8.3 <<>> 4.6.6.221.origin.asn.cymru.com TXT
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUERY SECTION:
;; 4.6.6.221.origin.asn.cymru.com, type = TXT, class = IN
;; ANSWER SECTION:
4.6.6.221.origin.asn.cymru.com. 3h59m33s IN TXT "4837 | 221.6.0.0/16 | CN | apnic | 2003-01-09"
;; AUTHORITY SECTION:
asn.cymru.com. 23h58m49s IN NS ns1.asn.cymru.com.
asn.cymru.com. 23h58m49s IN NS ns2.asn.cymru.com.
;; ADDITIONAL SECTION:
ns1.asn.cymru.com. 17h44m53s IN A 38.229.0.51
ns2.asn.cymru.com. 17h44m53s IN A 38.229.0.52
;; Total query time: 2 msec
;; FROM: dns1.js.chinamobile.com to SERVER: default -- 211.138.200.69
;; WHEN: Thu Nov 15 17:13:45 2012
;; MSG SIZE sent: 48 rcvd: 174
如下是四台服务器的作用
The origin.asn.cymru.com zone is used to map an IP address or prefix to a corresponding BGP Origin ASN.
The origin6.asn.cymru.com zone is used to map an IPv6 address or prefix to a corresponding BGP Origin ASN.
The peer.asn.cymru.com zone is used to map an IP address or prefix to the possible BGP peer ASNs that are one AS hop away from the BGP Origin ASN's prefix.
The asn.cymru.com zone is used to determine the AS description of a given BGP ASN.
本文出自 “醉梦无的博客” 博客,请务必保留此出处http://wujunfeng.blog.51cto.com/3041/1060851
一般的dns反向解析可以使用dig -x参数加上IP地址即可,可以实现从IP地址反查注册域名信息。
如果需要查询该域名的详细注册信息,包括所在国家、省、市、联系方式等,可以使用whois命令,dig工具包含了whois命令,可以直接使用whois 加上IP地址即可,此外,有很多提供whois查询的网站也可以实现该功能。
如果需要查询该IP地址所在的自治域号则是一件比较麻烦的事情,一般如果使用whois查询,结果中含有origin字段,则表示其自治域号,不过一般的貌似都没有,在求助于中文网站无果后,开始求助外文网站,果然发现一个挺好的网站http://www.team-cymru.org/Services/ip-to-asn.html#whois,提供IP和ASN的映射。
例如我们要反查IP 2216.6.4,可以利用这个网站提供的服务器origin.asn.cymru.com,使用如下命令
# dig 4.6.6.221.origin.asn.cymru.com TXT
; <<>> DiG 8.3 <<>> 4.6.6.221.origin.asn.cymru.com TXT
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUERY SECTION:
;; 4.6.6.221.origin.asn.cymru.com, type = TXT, class = IN
;; ANSWER SECTION:
4.6.6.221.origin.asn.cymru.com. 3h59m33s IN TXT "4837 | 221.6.0.0/16 | CN | apnic | 2003-01-09"
;; AUTHORITY SECTION:
asn.cymru.com. 23h58m49s IN NS ns1.asn.cymru.com.
asn.cymru.com. 23h58m49s IN NS ns2.asn.cymru.com.
;; ADDITIONAL SECTION:
ns1.asn.cymru.com. 17h44m53s IN A 38.229.0.51
ns2.asn.cymru.com. 17h44m53s IN A 38.229.0.52
;; Total query time: 2 msec
;; FROM: dns1.js.chinamobile.com to SERVER: default -- 211.138.200.69
;; WHEN: Thu Nov 15 17:13:45 2012
;; MSG SIZE sent: 48 rcvd: 174
如下是四台服务器的作用
The origin.asn.cymru.com zone is used to map an IP address or prefix to a corresponding BGP Origin ASN.
The origin6.asn.cymru.com zone is used to map an IPv6 address or prefix to a corresponding BGP Origin ASN.
The peer.asn.cymru.com zone is used to map an IP address or prefix to the possible BGP peer ASNs that are one AS hop away from the BGP Origin ASN's prefix.
The asn.cymru.com zone is used to determine the AS description of a given BGP ASN.
本文出自 “醉梦无的博客” 博客,请务必保留此出处http://wujunfeng.blog.51cto.com/3041/1060851
相关文章推荐
- 云服务器 ECS Linux 系统下使用 dig 命令查询域名解析
- 枚举桌面应用程序lnk路径并得到对应程序的绝对路径(使用SHGetDesktopFolder函数枚举,然后使用COM查询IShellFolder,IShellLink和IPersistFile接口)
- python使用在线API查询IP对应的地理位置信息实例
- python使用在线API查询IP对应的地理位置信息实例
- 使用xsd.exe命令 根据指定的xml文件生成对应的xsd架构文件
- COM(VB/VBA/Script)利用服务标记调用WCF服务之三使用WSDL契约
- 如何利用C#编写网页投票器程序 如何使用代理来投票 代理IP来投票
- 利用SecureCRT上传、下载文件(使用sz与rz命令)
- 转载:ip对应的区域查询(asp.net版)
- dig命令使用大全
- dig命令使用大全(linux上域名查询)
- 开启mysql慢查询日志并使用mysqldumpslow命令查看
- 多条件查询--使用dapper命令参数动态拼接出最安全的sql语句
- Java使用纯真IP库获取IP对应省份和城市
- Linux下利用nc命令来监控检测服务器的端口使用情况
- 利用XShell上传、下载文件(使用sz与rz命令),超实用!
- 利用命令查看端口及对应程序
- 利用SecureCRT上传、下载文件(使用sz与rz命令)
- python查询IP对应的地理位置
- 利用SecureCRT上传、下载文件(使用sz与rz命令),超实用!