Domain Name Availabilty Script?

  • blackicicle
  • Born
  • Born
  • blackicicle
  • Posts: 1

Post 3+ Months Ago

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
  • Alan Lastufka
  • Proficient
  • Proficient
  • User avatar
  • Posts: 318
  • Loc: ChicagoLand, IL, USA

Post 3+ Months Ago

I don't know of a script, but... has this feature, you may be able to do "View Source" and rip it from there...?
  • RichB
  • Guru
  • Guru
  • User avatar
  • Posts: 1121
  • Loc: Boston

Post 3+ Months Ago

hotscripts probably has what you need: ... 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:

I just tried the demo; I didn't look at the code or anything.
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2696
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

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...";
  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, 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!


Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 36 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

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.