列举某域名下所有二级域名的命令

>nslookup
*** Can't find server name for address 202.102.224.68: Server failed
*** Can't find server name for address 202.102.227.68: Server failed
Default Server:  ns.myzone.cn
Address:  219.150.150.150

> set type=ns
> cnxhacker.com               //查询目标域名的ns
Server:  ns.myzone.cn
Address:  219.150.150.150

Non-authoritative answer:
cnxhacker.com   nameserver = ns.xinnet.cn
cnxhacker.com   nameserver = ns.xinnetdns.com

ns.xinnetdns.com        internet address = 210.51.170.66
ns.xinnet.cn    internet address = 210.51.171.209
> server ns.xinnet.cn         //server后要跟上步中所查询到的NS
Default Server:  ns.xinnet.cn
Address:  210.51.171.209

> ls cnxhacker.com          //ls后面跟要目标域名
[ns.xinnet.cn]
soft                           A      210.51.170.53
*                              A      60.171.162.90
article                        A      210.51.170.53
download                       A      210.51.170.53
cnxhacker.com.                 NS     server = ns.xinnetdns.com
cnxhacker.com.                 A      60.171.162.90
bbs                            A      60.171.162.93
cnxhacker.com.                 NS     server = ns.xinnet.cn

发表评论

电子邮件地址不会被公开。 必填项已用*标注