查询一个域名下的子域名方法

由于要封禁某些网站,而在防火墙下又不太可能用域名匹配,只能找到网站的所有域名所在的网段,检查所有二级域名的地址就可以了,当然,如果要眼睛观察的话可以不必重定向到文件
nslookup >C:list.txt //重定向输出到C盘下的文件
>set querytype=any
>xxx.com //xxx.com为要查询的域名
>server nsx.xxx.xxx //nsx.xxx.xxx为域名所在的DNS服务器
>ls -d xxx.com
然后将list.txt的内容导入excel,就可以较方便的处理了

Category: IT  Tags: ,
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.