Domain check dont work

Started by webgroupba, October 04, 2013, 08:47:23 PM

webgroupba

Hello all,

I have problem with my domain check, whois and domain registering, what ever I type its unavailable. Can anyone help me with the problem. I use now class.customwhois.php where it show all domain available.

I hope it will be fixed with your help-

Best regards

Enterprisevpssolutions

Mine is working fine. What is the module you are using and the version of your hostbill? Did you check the error log?
Enterprise Vps Solutions (VPS) - Cloud Solutions, Shared hosting, VPS , and more, Fast Dedicated Servers. Great ssl prices SSL Certs, Follow us on Twitter. Sales Question? Contact us! Send us a Request Tampa , Florida Hivelocity Datacenter

webgroupba

i use latest Version: 4.9.6:4506.   I use namecheap domain registar.

Error Log show me:
Quote15/09/2013 22:16:52   PHP Error   
PHP [Parsing Error]: syntax error, unexpected T_RETURN IN includes/core/class.customwhois.php(14)
15/09/2013 22:16:50   PHP Error   
PHP [Parsing Error]: syntax error, unexpected T_RETURN IN includes/core/class.customwhois.php(14)
15/09/2013 22:16:13   PHP Error   
PHP [Parsing Error]: syntax error, unexpected '-', expecting ';' or '{' IN includes/core/class.customwhois.php(11)
15/09/2013 22:16:11   PHP Error   
PHP [Parsing Error]: syntax error, unexpected '-', expecting ';' or '{' IN includes/core/class.customwhois.php(11)
12/09/2013 23:51:55   PHP Error   
PHP [Error]: Class 'CustomWhois' not found IN hbf/components/net/class.whois.php(92)
12/09/2013 23:51:54   PHP Error   
PHP [Error]: Class 'CustomWhois' not found IN hbf/components/net/class.whois.php(92)

webgroupba

#3
Can anyone help me with this problem?


sysbitnet

#5
I have simple problem, I followed as written on the official develop zone

Creating custom domain availability check script
https://dev.hostbillapp.com/additional-resources/creating-custom-domain-availability-check-script/

In HostBill its possible to use custom domain check script, instead of default lookup method. This is useful if you wish to use your registrar domain availability service. To implement custom domain check:


1. Create file class.customwhois.php in /includes/core dir of your HostBill

2. Update file body:


<?php
/* 
    This is sample class to perform custom domain checks.
    It replaces standard HostBill domain availability check method.
 */
class CustomWhois {




    
/*
     * This method should return true if domain is available to register, false otherwise
     */
    
public static function is_available($domainname) {
        
//perform your domain availability check here
        
return true;
    }




    
/*
     * This method should return whois information
     */
    
public static function whois($domainname) {
        
//pull or generate domain whois information here
        
return 'whois information';
    }
}
?>



And Editing / adding WHOIS servers for TLD availability check
https://dev.hostbillapp.com/additional-resources/editing-adding-whois-servers-for-domain-check/

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)



I add in whois.php


    '.rs' => array(
        'server' => 'whois.rnids.rs',
        'available' => 'Not Registered',
    ),



But not work, if i request domain available
i get status Available! Order Now!. If domain Unavailable! or although it is actually free. When i remove class.customwhois.php or disable i see for .rs domain Unavailable! if domain is not register .


Did you have idea ?
If you want something to change your the better, start you thinking about how to do it . . .

sysbitnet

If you want something to change your the better, start you thinking about how to do it . . .

sysbitnet

If you want something to change your the better, start you thinking about how to do it . . .

sysbitnet

If you want something to change your the better, start you thinking about how to do it . . .

Enterprisevpssolutions

What version of hostbill are you using? The latest update fixed some of the domain issues.
Enterprise Vps Solutions (VPS) - Cloud Solutions, Shared hosting, VPS , and more, Fast Dedicated Servers. Great ssl prices SSL Certs, Follow us on Twitter. Sales Question? Contact us! Send us a Request Tampa , Florida Hivelocity Datacenter

sysbitnet

Quote from: Enterprisevpssolutions on November 22, 2013, 05:28:14 AM
What version of hostbill are you using? The latest update fixed some of the domain issues.


Hello  Enterprisevpssolutions,


Thank you called


my current version is : 4.9.8: 4525   
If you want something to change your the better, start you thinking about how to do it . . .

Enterprisevpssolutions

If you can create a backup of the system and update to the latest version or the one right before that. The problem should resolve itself.
Enterprise Vps Solutions (VPS) - Cloud Solutions, Shared hosting, VPS , and more, Fast Dedicated Servers. Great ssl prices SSL Certs, Follow us on Twitter. Sales Question? Contact us! Send us a Request Tampa , Florida Hivelocity Datacenter

sysbitnet

Quote from: Enterprisevpssolutions on November 22, 2013, 07:11:25 PM
If you can create a backup of the system and update to the latest version or the one right before that. The problem should resolve itself.




Hello  Enterprisevpssolutions,


I did a clean update that I saw, but still the same problem. After update whois.php in includes/extend/whois is change and not have in list .rs whois. If i tray solutions in my previous post the result is still the same.


Any suggestions, ideas ?
If you want something to change your the better, start you thinking about how to do it . . .

Enterprisevpssolutions

What did you update too? My module is working for namecheap https://enterprisevpssolutions.com/evdsportal/index.php/checkdomain/namecheap-domain-registration/ you do a search it pulls up the correct data.

You can do a search for a domain that you know is active and then click on whois and it will show up the correct info.
Enterprise Vps Solutions (VPS) - Cloud Solutions, Shared hosting, VPS , and more, Fast Dedicated Servers. Great ssl prices SSL Certs, Follow us on Twitter. Sales Question? Contact us! Send us a Request Tampa , Florida Hivelocity Datacenter

sysbitnet

#14
Hello  Enterprisevpssolutions,

Thank you for re-post,

Quote from: Enterprisevpssolutions on November 23, 2013, 11:59:40 PM
What did you update too? My module is working for namecheap https://enterprisevpssolutions.com/evdsportal/index.php/checkdomain/namecheap-domain-registration/ you do a search it pulls up the correct data.

You can do a search for a domain that you know is active and then click on whois and it will show up the correct info.


Tray .rs domain for test and check is Available! or not

Thank you again
If you want something to change your the better, start you thinking about how to do it . . .