为了验证这些蜘蛛的真假,就用IP反向解析查询的方法来检查一下它们IP被解析过的域名。
linux系统IP反向解析查询的方法liunx 系统下可以使用 host 命令来查询IP的反解析域名。
例:host 123.125.66.120查询结果:120.66.125.123.in-addr.arpa domain name pointer baiduspider-123-125-66-120.crawl.baidu.com.ps:由于作者是在 centos 7.4 环境下测试的 host 命令,出现了错误-bash: host: command not found解决此错误的方法:yum install bind-utils 安装 bind-utils 即可windows 系统IP反向解析查询的方法在windows系统中,可以使用 nslookup ip 命令反查IP,以来判断是否来自真正的搜索引擎。
命令代码:nslookup 123.125.66.120查询结果:120.66.125.123.in-addr.arpa domain name pointer baiduspider-123-125-66-120.crawl.baidu.com.mac os 系统IP反向解析查询的方法网上说在 mac os系统中,可以 dig 命令来反查IP地址的反解析域名,可在作者实际测试中,发现并不行,可能我是用的虚拟机的问题,所以改用了 host 命令例:host 123.125.66.120查询结果:120.66.125.123.in-addr.arpa domain name pointer baiduspider-123-125-66-120.crawl.baidu.com.
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)