What are WHOIS Servers?

WHOIS Servers are used to determine the availability of domains.

In most cases, WHOIS servers will also return the WHOIS Contact Information for a domain.

WHASOLS supports a large number of TLDs by default. However, if you wish to sell a domain extension not offered by default, you will need to add the WHOIS Server for it.

Customising WHOIS Servers

The WHOIS Server definitions shipped with WHASOLS by default can be found in /resources/domains/whois.json. This file should not be edited.

Inside it, define the whois servers you wish to add or modify only. This file will remain in place when updating WHASOLS.

Below is a sample custom whois.json file defining the whois servers for .myextension and .myextension.com, and overriding the default whois server for .org

Sample whois.json Override File
[
    {
        "extensions": ".com,.net,.es,.com.es,.nom.es,.gob.es,.edu.es",
        "uri": "socket://whois.crsnic.net",
        "available": "No match for"
    },
    {
        "extensions": ".org,.ngo,.ong",
        "uri": "socket://whois.publicinterestregistry.net",
        "available": "NOT FOUND"
    }
]
A WHOIS Server definition is made up of four parts.

  • extensions - A comma separated list of extensions that this WHOIS server will be used for. In the above example there are two whois servers defined, but three extensions for which lookups are defined.
  • uri - This is the server that will be connected to. A whois based server should begin with socket:// and a web based request should begin with http:// or https:// A port for the server can be provided using :port on this field.
  • available - This is the string that WHASOLS will match against to determine an available domain. This string must only appear in the output when the domain is available.

Where can I find other WHOIS Servers?

An extensive list of whois servers can be found at IANA, if it not listed you will need to contact the registry to find out the appropriate information.