|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
non-result
So how do you make it say something intelligent if the name you query is available?
|
|
#2
|
|||
|
|||
|
Re: non-result
In the case of .com/.net/.org,
<br> the $result->regyinfo and $result->rawdata <br> arrays will be empty. <br> <br> Keep in mind whois on it's own isn't enough <br> to 100% discern if a domain is available <br> or not because "on hold" domains can <br> be dropped from whois yet be unavailable <br> to register for up to 5 days. Also, <br> the whois servers can lag behind the root <br> servers for up to 2 days. This is why <br> the utils.whois class has a simple <br> dns_lookup() which returns true if the <br> domain has NS rr's defined (and is thus <br> in the roots) <br> <br> For other TLD's we'll have to figure it <br> out in the extended handlers. <br> <br> <br> |
|
#3
|
|||
|
|||
|
display nice data if it is avalible
I pretty much had the same problem while developing http://test.simplehq.com/easydots (over 200 countrys supported) to get around this I did it a crude way.
I check for a domain name that was not taking, counted the characters in the message then had a simple loop if $result != totalnonmessage { avalibe } else { its not } This works sweet unless they change the not found message!! Im currently using the whois2 code and merging it with own system (which handles prices and the like), who know I may even post it one time!!! |
|
#4
|
|||
|
|||
|
Christmas Islands
Hi
Do you know that Christmas Islands (cx) does not work, you have it supported in you class though. I cant get it to work with my code either. Any ideas why not? |
|
#5
|
|||
|
|||
|
mistake
Its me again
just noticed a mistake with your mx search you need to update the server to whois.nic.mx, i think you made a typo, we all do!!! |
|
#6
|
|||
|
|||
|
Re: mistake
It's fixed now, thanks. (FYI, the original
<br> list of whois servers was derived from <br> Richard J Sexton's multi whois client, <br> http://dns.vrx.net/tech/rootzone/) <br> |
|
#7
|
|||
|
|||
|
Re: Christmas Islands
the .cx whois server seems to simply "hang"
<br> when queried and has been doing so for <br> weeks at least. <br> <br> I was thinking of adding a "hack" for this <br> that would simply not bother and push an <br> error onto errstr[] a la "the .cx whois <br> server is broken" which could then be <br> turned off when it finally gets fixed. <br> <br> Maybe I'll do that now. |
|
#8
|
|||
|
|||
|
Re: Christmas Islands
Ok after emailing them they say that they do not have a whois gateway running although they plan to have it in the next 2 weeks
|
|
#9
|
|||
|
|||
|
Re: mistake
I have a list here over about 250 whois servers, If its any use to you it yours
|
|
#10
|
|||
|
|||
|
Re: mistake
Sure, send it over and I'll merge it
in. |
|
#11
|
|||
|
|||
|
Re: mistake
Ok its on its way, Ill also send it you the way I have done it, although itll be like you using a club to go hunting (you have a machine gun at the moment) :)
|
|
#12
|
|||
|
|||
|
Error?
Hi,
I have just tried running this set of PHP scripts, but came up with an error. The code I tried was straight from the FAQ, which was: <!-- Code --> <p><pre><font color=#008000><xmp> include( "main.whois"); $whois = new Whois("test.com"); $result = $whois->Lookup(); if(empty($result->regyinfo)) { // available } else { // taken } </xmp></font></pre><p> <!-- Code --> and this came up with the following error: Fatal error: Call to unsupported or undefined function preg_replace() in netsol.whois on line 36 |
|
#13
|
|||
|
|||
|
Re: Error?
Error in the FAQ, that should read,
$result["regyinfo"] |
|
#14
|
|||
|
|||
|
Help
09/01/2000
hi i am total newbie & still trying to learn php. Can anyone help on how to setup the whois script for use on a website. I tried a few things from the faq & the readme & got nothing. Thanks in advance Kassim |
|
#15
|
|||
|
|||
|
New Domains
Hi people
I was wondering if anyone knew of a way to make a query a whois gateway and make it return all new domain names (say in last day). If anyone knows this would be a great help. Thanks Chris |
![]() |
| Viewing: Dev Shed Forums > Other > Development Articles > Using PHP classes to navigate distributed whois databases |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|