Skip to main content

Net::Whois - Whois scraper checks domain data, determines whether the domain is registered or not



Data is collected via the WHOIS protocol from central servers for each domain zone. You can read more about WHOIS on Wikipedia:

A-Parser functionality allows you to save scraping settings for future use (presets), set a scraping schedule, and much more. You can use automatic query multiplication, substitution of subqueries from files, iteration over alphanumeric combinations and lists to obtain the maximum possible number of results.

Saving results is possible in the form and structure that you need, thanks to the built-in powerful templating engine Template Toolkit which allows you to apply additional logic to the results and output data in various formats, including JSON, SQL, and CSV.

Use Cases for the Scraper

Collected Data

  • Whether the domain is registered or not
  • Domain registration expiration date
  • When the domain was registered
  • The whois service used
  • List of the domain's name servers
  • The current status of the domain
  • Domain release date


  • Support for working with international domains (IDN, for example

Use Cases

  • Collecting available domains or those that will soon be released
  • Collecting a list of ns-servers
  • Obtaining domain statuses


As queries, you need to specify the domain of the site you are searching for, for example:

Output Results Examples

A-Parser supports flexible result formatting thanks to the built-in templating engine Template Toolkit, which allows it to output results in any form, as well as in structured formats, such as CSV or JSON

Default Output

Result format:

$query - registered: $registered, expire: $expire_date, creation: $creation_date

The result shows the domain, whether it is registered, the domain registration expiration date, and the domain registration date: - registered: 1, expire: 30.03.2028, creation: 29.03.1997 - registered: 1, expire: 25.02.2022, creation: 25.02.2012 - registered: 1, expire: 23.06.2021, creation: 24.06.1997 - registered: 1, expire: 01.10.2021, creation: 23.09.1997 - registered: 1, expire: 14.09.2028, creation: 15.09.1997

Output of NS List

Result format:


Example of result:

Output of domain terms data in CSV

Result format:

[% tools.CSVline(query, registered, expire_date, creation_date, free_date, whoisserver, registrar) %]

Example of result:,1,25.02.2022,25.02.2012,none,,"PDR Ltd. d/b/a"

Output of NS List in CSV Table

Result format:

[% FOREACH ns;
tools.CSVline(query, server);
END %]

Example of result:,,

Dumping Results to JSON

Общий формат результата:

[% IF notFirst;
notFirst = 1;

obj = {};
obj.query = query;
obj.registered = p1.registered;
obj.expire_date = p1.expire_date;
obj.creation_date = p1.creation_date;
obj.free_date = p1.free_date;
obj.whoisserver = p1.whoisserver;
obj.registrar = p1.registrar; = [];

FOREACH item IN p1.ns;{
server = item.server

obj.json %]

Начальный текст:


Конечный текст:


Example of the result:

"registered": 1,
"query": "",
"free_date": "none",
"expire_date": "25.02.2022",
"registrar": "PDR Ltd. d/b/a",
"domains": [
"server": ""
"server": ""
"creation_date": "25.02.2012",
"whoisserver": ""

To make the "Start text" and "End text" options available in the Task Editor, you need to activate "More options".

Results processing

A-Parser allows you to process results directly during scraping, in this section we have provided the most popular cases for the Net::Whois scraper

Getting the domain registrar

Add Result Constructor and select the source from the dropdown list: $ Choose the type: RegEx Match. In the Regex field, enter the regular expression: Registrar:\s*(.+) and save to the variable registrar. Add to the Result format: $query - $registrar\n

Download example

How to import an example into A-Parser


Possible settings

ParameterDefault valueDescription
Recursive queryAllows you to get an extended version of WHOIS
WHOIS serverAllows you to set your own WHOIS server
Checking by DNSAllows you to check if a domain is registered based on the existence of an IP for the domain
Checking domains by DNS recordChecks IP, if it finds status ALLOCATED, then determines the domain as registered, if the option is disabled, then IP check does not occur at all
Force DNS check for not found domainsForced check if the domain was determined as unregistered