Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 9th, 1999, 07:41 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
non-result

So how do you make it say something intelligent if the name you query is available?

Reply With Quote
  #2  
Old December 9th, 1999, 10:32 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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>

Reply With Quote
  #3  
Old December 11th, 1999, 07:15 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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!!!

Reply With Quote
  #4  
Old December 11th, 1999, 10:10 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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?

Reply With Quote
  #5  
Old December 11th, 1999, 11:36 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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!!!

Reply With Quote
  #6  
Old December 15th, 1999, 10:04 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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>

Reply With Quote
  #7  
Old December 15th, 1999, 10:08 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #8  
Old December 15th, 1999, 10:34 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #9  
Old December 15th, 1999, 11:43 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: mistake

I have a list here over about 250 whois servers, If its any use to you it yours

Reply With Quote
  #10  
Old December 15th, 1999, 11:51 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: mistake

Sure, send it over and I'll merge it
in.

Reply With Quote
  #11  
Old December 15th, 1999, 12:34 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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) :)

Reply With Quote
  #12  
Old December 22nd, 1999, 11:25 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #13  
Old December 29th, 1999, 05:33 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Error?

Error in the FAQ, that should read,
$result["regyinfo"]

Reply With Quote
  #14  
Old January 8th, 2000, 06:29 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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


Reply With Quote
  #15  
Old March 15th, 2000, 07:08 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Using PHP classes to navigate distributed whois databases


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT