标题: 批处理高手请来帮帮忙!
[打印本页]
作者: sharkwang526
时间: 2006-3-3 08:31
标题: 批处理高手请来帮帮忙!
请问:如果要用nslookup命令,并把
> set type=ns
>
yahoo.com的屏幕输出结果保存成一个文件,该如何用批处理命令?c:\>nslookup
> set type=ns
> yahoo.com
Non-authoritative answer:
yahoo.com nameserver = ns3.yahoo.com
yahoo.com nameserver = ns4.yahoo.com
yahoo.com nameserver = ns5.yahoo.com
yahoo.com nameserver = ns1.yahoo.com
yahoo.com nameserver = ns2.yahoo.com
ns1.yahoo.com internet address = 66.218.71.63
ns2.yahoo.com internet address = 66.163.169.170
ns3.yahoo.com internet address = 217.12.4.104
ns4.yahoo.com internet address = 63.250.206.138
ns5.yahoo.com internet address = 216.109.116.17
> exit
作者: 3742668
时间: 2006-3-3 09:04
呵呵,你多看看帮助啊。。
nslookup -type=ns yahoo.com > yahoo.txt
作者: sharkwang526
时间: 2006-3-3 10:48
多谢 3742668,我刚接触批处理,正在学习。非常感谢!!!!!