Supplied TLD is incorrect

Started by thetrusteeco, May 21, 2013, 02:47:40 AM

thetrusteeco

Quote from: tallship on July 28, 2013, 01:39:28 PM
Another +1 for you :)

Thanks for your diligence. I believe people should be thanked for their commitment to community support so they know they're appreciated, and I do appreciate the effort you put into the whois client services :)

Kindest regards,

Thanks TallShip.  Always appreciated the props.

whois.txt v10 might be the last.  Most TLDs that can be fixed in HostBill have been.  Some others could be made operational if KBKP was willing to add a couple more functions to the WHOIS script:
1) https:// query (Like http:// query but via https://) - .ve (would have to work with a self signed SSL), .cr, .gr (without being listed at GRWEB), etc.
2) http:// query without the TLD specified - .dj, and .tj for example want "domain" submitted to the WHOIS, not "domain.tld"

I don't think KBKP is going to make any changes to the WHOIS functions if they can't even bother shipping an updated whois.php file.  Instead they keep shipping the same broken code.  We're heading to Blesta as soon as we feel it's stable enough.  Paul might still need to do a lot of work, but I think he's more likely to do it than KBKP is.  It's really unfortunate, because I love the functional parts of HostBill.
"No man really becomes a fool until he stops asking questions"
Charles Proteus Steinmetz

thetrusteeco

It looks like Internet Computer Bureau has make some changes that have affected HostBill's ability to query their site. Below are the fixes for .ac, .io, .sh and .tm.

For .ac
REPLACE:
'.ac' => Array(
'server' => 'http://www.nic.ac/cgi-bin/whois?query=',
'available' => 'This Domain is available for purchase'
),


WITH:
'.ac' => Array(
'server' => 'http://www.nic.ac/cgi-bin/whois?query=',
'available' => 'This Domain is'
),


For .io
REPLACE:
'.io' => Array(
'server' => 'http://www.nic.io/cgi-bin/whois?query=',
'available' => 'This Domain is available for purchase'
),


WITH:
'.io' => Array(
'server' => 'http://www.nic.io/cgi-bin/whois?query=',
'available' => 'This Domain is'
),


For .sh
REPLACE:
'.sh' => Array(
'server' => 'http://www.nic.sh/cgi-bin/whois?query=',
'available' => 'This Domain is available for purchase'
),


WITH:
'.sh' => Array(
'server' => 'http://www.nic.sh/cgi-bin/whois?query=',
'available' => 'This Domain is'
),


For .tm
REPLACE:
'.tm' => Array(
'server' => 'http://www.nic.tm/cgi-bin/whois?query=',
'available' => 'This Domain is available for purchase'
),


WITH:
'.tm' => Array(
'server' => 'http://www.nic.tm/cgi-bin/whois?query=',
'available' => 'This Domain is'
),

"No man really becomes a fool until he stops asking questions"
Charles Proteus Steinmetz

thetrusteeco

To get .dm (Dominica) domains working in HostBill:

UNDER:
'.dk' => Array(
'server' => 'whois.dk-hostmaster.dk',
'available' => 'No entries found'
),


ADD:
'.dm' => Array(
'server' => 'whois.nic.dm',
'available' => 'not found...'
),
"No man really becomes a fool until he stops asking questions"
Charles Proteus Steinmetz

thetrusteeco

If you want add support for the .co.pt and .lta.pt SLD, do the following:

IN:

/includes/extend/whois/whois.php

UNDER:
'.pt' => Array(
'server' => 'whois.dns.pt',
'available' => 'no match'
),


ADD:
'.co.pt' => Array(
'server' => 'whois.co.pt',
'available' => 'no match'
),
'.lta.pt' => Array(
'server' => 'whois.co.pt',
'available' => 'no match'
),
"No man really becomes a fool until he stops asking questions"
Charles Proteus Steinmetz

thetrusteeco

If you want add support for the .ls (Lesotho) TLD, do the following:

IN:

/includes/extend/whois/whois.php

UNDER:
'.lk' => Array(
'server' => 'whois.nic.lk',
'available' => 'This Domain is not available in our whois database'
),


ADD:
'.ls' => Array(
'server' => 'http://www.co.ls/co.asp?CT_DNS_NAME=',
'available' => 'No records returned.'
),

"No man really becomes a fool until he stops asking questions"
Charles Proteus Steinmetz

DeLeTe Me

Hi,

Thinks its odd no one added the new TLD's yet, so here is my contribution for .link :)

UNDER:
    '.la' => Array

        (

        'server' => 'whois.nic.la',

        'available' => 'NOT FOUND'

    ),


PUT

    '.link' => array(

        'server' => 'whois.uniregistry.net',

        'available' => 'is available for registration'

    )

phoenixlzx

Hello,

Thanks for the sharing, I created a Github repository for this file:
https://github.com/phoenixlzx/hostbill-whois

Added all patches in this post and some others. :-)

DeLeTe Me

Nice work :) But Hostbill added all new major TLD's some weeks ago in an update.

phoenixlzx

Well I downloaded the latest version but still got the file I previously got.

They added new TLDs, but not enough. Such as `.moe` isnt exist in this file. I added these to my file in the repo.

BRJP

Dear All,

I am having some issues adding some domains.  For example:

.Technology
.Tech
.London
.Wales
.cymru

I understand these can be added in the whois.php file but how do I find the right look-up register for each one? 

For example, I add the below line in the whois.php and I get a message (on the Domain Registration ordering screen)  Domain ss.wales NOT AVAILABLE

'.wales' => array( 'server'=>'whois.nic.wales', 'available'=>'Not Registered'),

Any ideas?  Am I missing something else?

Thanks in advance.
Kind regards,
Bradley Porter
--------------------
Find out more about SaneChoice Services at: https://www.sanechoice.cloud/

tallship

Just thought I'd pop this in here for historical reference:
https://github.com/phoenixlzx/hostbill-whois

.
Bradley D. Thornton - Manager Network Services, NorthTech Computer   TEL: +1.310.388.9469 (US) | +44.203.318.2755 (UK) | +61.390.088.072 (AU) | +41.43.508.05.10 (CH)
Registered Linux User #190795 - "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.

Factor

There is a module called Whois Servers which allows you to set whois server on each tld if needed.  It also show which TLDs you sell as products and which ones you don't.
Thanks,
The Factor