批处理:在循环中执行whois命令似乎不起作用

时间:2014-09-30 15:13:40

标签: batch-file

我可以手动执行whois命令,但是当我尝试使其遍历DNS地址列表时,它无法正常工作。 代码:

for /F "tokens=*" %%A in (dnsnames.txt) DO whois %%A > results.txt

两个地址的输出:

Whois v1.12 - Domain information lookup utility
Sysinternals - www.sysinternals.com
Copyright (C) 2005-2014 Mark Russinovich

Connecting to COM.whois-servers.net...
Connecting to COM.whois-servers.net...
Connecting to whois.markmonitor.com...

1 个答案:

答案 0 :(得分:1)

我收到此消息:(当我将>更改为>>

TERMS OF USE: You are not authorized to access or query our Whois
database through the use of electronic processes that are high-volume and
automated except ...