IP Address and Domain Lookup - SmartWhois

Prev Page Next Page

Batch Processing

SmartWhois can process lists of IP addresses, hostnames, or domain names saved as plain text (ASCII) or Unicode files. The valid format for such batch files is simple: each line must begin with an IP address, hostname, or domain. If you want to process domain names, they must be located in a separate file from IP addresses and hostnames. If an IP address, hostname, or domain name is followed by other characters/words placed on the same line, there must be at least one space separating them from the first word on a line. Below is an example of a batch file, which is a standard web server log: - - [10/Apr/2000:08:09:32 -0400] "GET /en.htm HTTP/1.0" 200 5413 "-" "Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)" - - [10/Apr/2000:08:09:33 -0400] "GET /images/l2.gif HTTP/1.1" 200 848 "http://www.tamos.com/" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" - - [10/Apr/2000:08:09:34 -0400] "GET /download.htm HTTP/1.0" 200 10921 "http://www.tamos.com/" "Mozilla/4.61 [en] (WinNT; I)"

Another sample batch file:



An example of a domain name batch file:





Additionally, the Text Containing IP Addresses batch query type is supported. If this option is selected, SmartWhois searches for IP addresses in text files and makes respective IP queries.

You can automate batch processing using command line options.