supplied TLD is incorrect

Started by ethaniel86, July 26, 2015, 09:58:31 PM

ethaniel86

anyone facing issue while querying domain availability for extension .wtf .casino etc.? mostly donut group extension.  :-\



on latest HB Version: 2015-07-20:2015   

xaviercr

HostBill use WHOIS servers (most of them works over port 43) to check domain availability.

If you need to add some custom servers or edit current list you can find them in /includes/extend/whois/whois.php Array $servers this file contains list of tlds and related whois servers.

Example:
$servers = array(
     '.com' => Array
        (
        'server' => 'whois.crsnic.net',
        'available' => 'No match for'
    )
//....//
);
Array element above informs HostBill core that:

1. if domain to lookup have .com extension than:
connect with whois.nic.co over port 43
provide domain to lookup
check response, if it will contain string "No match for:" (as described in 'available' section) it means that domain is available for registration

2. If 'server' part begin with http:// HostBill will perform lookup using port 80 (http request)