Domain Name Availabilty Script?

  • blackicicle
  • Born
  • Born
  • No Avatar
  • Joined: Feb 05, 2004
  • Posts: 1
  • Status: Offline

Post February 5th, 2004, 12:54 pm

Where I can find a script or a site that will allow you to do a domain name availability serch, that will return the results that can be used in a template?

//Please use descriptive subject lines, moved to programming forum -- b_heyer
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 5th, 2004, 12:54 pm

  • Alan Lastufka
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jan 21, 2004
  • Posts: 318
  • Loc: ChicagoLand, IL, USA
  • Status: Offline

Post February 5th, 2004, 1:56 pm

I don't know of a script, but...

http://www.doteasy.com has this feature, you may be able to do "View Source" and rip it from there...?
Alan Lastufka | Fall of Autumn
  • RichB
  • Guru
  • Guru
  • User avatar
  • Joined: May 17, 2003
  • Posts: 1121
  • Loc: Boston
  • Status: Offline

Post February 6th, 2004, 4:27 am

hotscripts probably has what you need:

http://www.hotscripts.com/PHP/Scripts_a ... ols/Whois/

that's a link to the php scripts, but they probably have them in other languages tool.

The first one looks kind of interesting:

http://www.mrscripts.co.uk/

I just tried the demo; I didn't look at the code or anything.
Free Programming Resources
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Joined: Jan 23, 2004
  • Posts: 2675
  • Loc: Somewhere outside the box in Sarasota, FL.
  • Status: Offline

Post February 6th, 2004, 7:19 am

Hmm. Well, I think this would be a good opportunity to learn some perl for CGI. :)
Perhaps a method might entail simply using the 'whois' program that comes with every *nix, and coding it into a perl wrap. (You can get it for Windoze, if absolutely necessary.) A bit of perl;


Code: [ Select ]

 
$whoisprog= "/usr/local/bin/whois"; 

  if ($fields{domainname}=~ /^([-\@\w.]+)$/) {
    $fields{domainname} = $1;
    $result= `$whoisprog $fields{domainname}`;
    print $result;
  } else {
    print "Illegal Character(s) sent...";
  }
  1.  
  2. $whoisprog= "/usr/local/bin/whois"; 
  3.   if ($fields{domainname}=~ /^([-\@\w.]+)$/) {
  4.     $fields{domainname} = $1;
  5.     $result= `$whoisprog $fields{domainname}`;
  6.     print $result;
  7.   } else {
  8.     print "Illegal Character(s) sent...";
  9.   }


Of course, 'domainname' comes from the html, cgi, php, or whatever through a form action post to the cgi.

Then you just need to code in the return page in the cgi itself displaying the results.

Now, if it were me, I might add fuzzy matching using Class::DBI and fill an array of close word associated matches. As an example, if someone were searching for bluezone.com, the fuzzy logic might search for pattern type matches on 'blue' or 'zone', perhaps coming up with 'blueszone' or 'blue-zone'; of course it goes without saying the whois would need to be parsed through each of the available domain extensions.

Hope that helps! Have fun!

Cheers.
"It's always a long day, 86,400 won't fit into a short."

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 200 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.