[advanced search]
Next Live Event: NamePros Live Auction, May 23rd at 6PM EDT
Results from the May 8th live auction are here.
19 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming > CODE
User Name
Password

Reply
 
Thread Tools
Old 01-22-2008, 11:18 AM   · #101
Mikor
Resident Linux Geek
 
Mikor's Avatar
 
Name: Michael Walker
Location: East Yorkshire, England
Trader Rating: (7)
Join Date: Aug 2005
Posts: 2,254
NP$: 272.30 (Donate)
Mikor is a name known to allMikor is a name known to allMikor is a name known to allMikor is a name known to allMikor is a name known to allMikor is a name known to all
To try and get more queries per TLD, you could implement my whois server class, which selects a random server for the requested TLD.


Please register or log-in into NamePros to hide ads
__________________
Michael Walker @ http://me.yarrt.com

NEW COMPUTING BLOG: http://blog.yarrt.com
Mikor is offline   Reply With Quote
Old 01-22-2008, 11:20 AM   · #102
touchring
NamePros Member
 
Trader Rating: (2)
Join Date: Sep 2005
Posts: 147
NP$: 130.00 (Donate)
touchring is an unknown quantity at this point
Originally Posted by Matthew.
It makes a query to the WHOIS server which counts as...well....one query. To truly check availability you need to take the response from the WHOIS server not just open connection to the domain (otherwise when sites are down they would show as available and so on)



Thanks, i think the save to text option didn't work with large list - hangs before showing the download list links. But with that option unchecked, it seems to be working.

Last edited by touchring : 01-22-2008 at 11:26 AM.
touchring is offline   Reply With Quote
Old 01-22-2008, 11:29 AM   · #103
Matthew.
Stud Sausage
 
Location: England
Trader Rating: (25)
Join Date: Dec 2006
Posts: 1,539
NP$: 33.41 (Donate)
Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of
Adoption Breast Cancer Breast Cancer Cancer Survivorship
Originally Posted by touchring
Thanks, i think the save to text option didn't work with large list. Unchecked, it seems to be working.



Quite probable lol. Like I and others have said, it's ribbled with bugs...threw it together pretty quickly and to be honest the amount of php I knew back then left a lot to be desired I will update it as promised when I find time

Mikor, thanks for that, I hadn't seen your post before. If I had know about that data before I would have used it - it's a new discovery to me and will no doubt come in handy!
__________________
My Blog

My NamePros Tools
(firefox plugin, google gadget etc)
Matthew. is offline   Reply With Quote
Old 01-23-2008, 05:47 AM   · #104
touchring
NamePros Member
 
Trader Rating: (2)
Join Date: Sep 2005
Posts: 147
NP$: 130.00 (Donate)
touchring is an unknown quantity at this point
Originally Posted by Matthew.
Quite probable lol. Like I and others have said, it's ribbled with bugs...threw it together pretty quickly and to be honest the amount of php I knew back then left a lot to be desired I will update it as promised when I find time




Thanks, i found out that even though it got stuck at the "Preparing results, please wait..." stage, the files have been created under \save folder.
touchring is offline   Reply With Quote
Old 02-13-2008, 06:35 PM   · #105
Brilliances
NamePros Member
 
Trader Rating: (0)
Join Date: Dec 2007
Posts: 31
NP$: 0.00 (Donate)
Brilliances is an unknown quantity at this point
wow. Exactly what I was looking for. Thanks!
__________________
DomainHolics.com - Currently Selling: AmericanBums.com

Hottest Girls|Web Hosting Reviews|short term unsecured loan
Brilliances is offline   Reply With Quote
Old 02-14-2008, 01:15 AM   · #106
bbalegere
Senior Member
 
bbalegere's Avatar
 
Name: Bharat Balegere
Location: Bangalore
Trader Rating: (15)
Join Date: Jul 2005
Posts: 1,136
NP$: 485.65 (Donate)
bbalegere is just really nicebbalegere is just really nicebbalegere is just really nicebbalegere is just really nice
Thanks a lot.
Amazing script.
__________________
••Watch Lost Heroes Bionic Woman House••
bbalegere is offline   Reply With Quote
Old 02-22-2008, 02:05 AM   · #107
seolinks
Account Closed
 
Trader Rating: (14)
Join Date: Jul 2006
Posts: 231
NP$: 7.00 (Donate)
seolinks has a spectacular aura aboutseolinks has a spectacular aura about
this is one good freeware!. thanks for sharing!.

+rep for you!
seolinks is offline   Reply With Quote
Old 02-22-2008, 08:38 AM   · #108
Solac
First Time Poster!
 
Trader Rating: (0)
Join Date: Feb 2008
Posts: 1
NP$: 0.00 (Donate)
Solac is an unknown quantity at this point
thanks a lot, however it doesnt seem to work properly with .co.uk domains
Solac is offline   Reply With Quote
Old 02-28-2008, 09:42 AM   · #109
touchring
NamePros Member
 
Trader Rating: (2)
Join Date: Sep 2005
Posts: 147
NP$: 130.00 (Donate)
touchring is an unknown quantity at this point
It doesn't seem to work properly for dot org. I'm being blocked by whois.publicinterestregistry.net if i check more than a few domains. Is there a way around it? I mean, can i add some pause interval?

Thanks again for the great script.
touchring is offline   Reply With Quote
Old 02-28-2008, 03:32 PM   · #110
dax44
NamePros Member
 
Trader Rating: (7)
Join Date: Jan 2008
Posts: 155
NP$: 30.00 (Donate)
dax44 has a spectacular aura aboutdax44 has a spectacular aura about
heavy whois lookups?

Can I just make comment? - don't mean to hijack your thread - you should not be using whois lookups to bulk check domain availability - unless you really need all that WHOIS info.

there are better , faster , more network friendly ways

1. for example run your domains through a simple dns check first - if there are dns servers showing , the domain must be registered (reverse not always true). for those with mac osx / linux :

[pbg42:~/Documents] paul% host -t ns nonexistantdomains.com
Host nonexistantdomains.com.lan not found: 3(NXDOMAIN)
[pbg42:~/Documents] paul% host -t ns takendomains.com
takendomains.com name server ns1.hozt.com.
takendomains.com name server ns2.hozt.com.

You can batch this easily with:

foreach var (`cat mylistofdomains.txt`)
host -t ns $var >> dnscheckresults.txt
sleep 1
end

the sleep is there to stop the script from going into meltdown
there are no limits with DNS lookups AFAIK

2. Or for lists with up to 500 keywords at a time of course just use a common bulk availablility check like the one at www.cheapnames.com (under bulk reg)

You can cut/paste and check thousands in a few minutes as cheapnames/godaddy/wwd (and other registrars) maintain their own lists of availability which give near instant results.

dax

Last edited by dax44 : 02-28-2008 at 03:37 PM.
dax44 is offline   Reply With Quote
Old 03-19-2008, 07:50 AM   · #111
RickM
www.RickyMills.com
 
RickM's Avatar
 
Name: Rick Mills
Location: Herts, UK
Trader Rating: (90)
Join Date: Sep 2005
Posts: 3,440
NP$: 1230.52 (Donate)
RickM has much to be proud ofRickM has much to be proud ofRickM has much to be proud ofRickM has much to be proud ofRickM has much to be proud ofRickM has much to be proud ofRickM has much to be proud ofRickM has much to be proud ofRickM has much to be proud ofRickM has much to be proud of
Cancer Survivorship Save The Children Save The Children Cancer Animal Cruelty Child Abuse Cancer Survivorship 9/11/01 :: Never Forget Animal Cruelty Child Abuse Animal Rescue Animal Cruelty
Heres my current (modded) copy. It has extra domain options such as LL-L and more, and several new domain extensions. I'm also making a modification to allow you to exclude certain letters...will release that bit at a later date.

PHP Code:
<?php
/*

SCRIPT CREATED BY MATTHEW @ NAMEPROS.COM -- MODDED BY RICKM @ NAMEPROS.COM

ENJOY!

*/
?>

<form action=available.php method=post>
<table>
<tr>
  <td class=bordered2 width=150>Type:</td>
  <td class=bordered2 width=150>Limit</td>
  <td class=bordered2 width=150>Extension</td>
</tr>
<tr>
  <td class=bordered2>
  <SELECT NAME="type" class=bordered2>
    <option value="LLL">LLL</option>
    <option value="LLLL">LLLL</option>
    <option value="LLLLL">LLLLL</option>
    <option value="LLLLLL">LLLLLL</option>
    <option value="NNN">NNN</option>
    <option value="NNNN">NNNN</option>
    <option value="NNNNN">NNNNN</option>
    <option value="NNNNNN">NNNNNN</option>
    <option value="L-L">L-L</option>
    <option value="N-N">N-N</option>
    <option value="LNL">LNL</option>
    <option value="LLN">LLN</option>
    <option value="NLL">NLL</option>
    <option value="LL-L">LL-L</option>
    <option value="L-LL">L-LL</option>
    <option value="L-L-L">L-L-L</option>
    <option value="LLNN">LLNN</option>
    <option value="LLLN">LLLN</option>
    <option value="LNNN">LNNN</option>
  </SELECT></td>
  <td class=bordered2><input type=text name=x class=camo size=6 value=250></td>
  <td class=bordered2>
  <SELECT NAME="ext" class=bordered2>
    <option value="COM">.COM</option>
    <option value="US">.US</option>
    <option value="NET">.NET</option>
    <option value="ORG">.ORG</option>
    <option value="BIZ">.BIZ</option>
    <option value="INFO">.INFO</option>
    <option value="CO.UK">.CO.UK</option>
    <option value="IN">.IN</option>
  </SELECT></td>
</tr>
<tr>
  <td class=bordered2 colspan=3><input type=submit value=Scan name=submit class=cloakedbutton></td>
</tr>
</table>
</form>

<?php

if(isset($_POST['submit'], $_POST['type']))
{
  function
checkdomain($xserver, $xdomain)
  {
    
$sock = @fsockopen($xserver,43) or die("Error connecting to whois server.");
    
fputs($sock,"$xdomain\r\n");
    
    
$result = '';
    
    while(!
feof($sock))
    {
      
$result .= fgets($sock,128);
    }
    
fclose($sock);
    
    if(
eregi("No match", $result) || eregi("NOT FOUND", $result))
    {
      return
true;
    }
    else
    {
      return
false;
    }
  }
  
// Function
  
$chars = array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9");
    
//$chars = array("a","b","c","d","e","f","g","h","i","l","m","n","o","p","r","s","t");

  
$type = trim(strip_tags($_POST['type']));
  
$ext = trim(strip_tags($_POST['ext']));
  
$x = intval(trim(strip_tags($_POST['x'])));

echo
"<font size=2><br />\n";

  
$i = 1;

      
//echo'<table border = "1"><tr bgcolor="#E6FFCC">';
  
while($x >= $i)
  {
    
///////////////////////////////////////////////////////////////////////////////
    // Here is where we generate a random string of 3 in the format XXX
    // This can be changed easily to the format LLN with this code instead:
    ///// $current = $chars[rand(0,25)].$chars[rand(0,25)].rand(0,35);
    // Or to L-N with this code:
    ///// $current = $chars[rand(0,25)]."-".rand(0,9);
    // Mix and match. Get what you're looking for! :P
    
    
switch($type)
    {
      case
'L-L':
           
$current = $chars[rand(0,25)]."-".$chars[rand(0,25)];
           break;
      case
'N-N':
           
$current = $chars[rand(26,35)]."-".$chars[rand(26,35)];
           break;
      case
'NNN':
           
$current = $chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)];
           break;
      case
'NNNN':
           
$current = $chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)];
           break;
      case
'NNNNN':
           
$current = $chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)];
           break;
      case
'NNNNNN':
           
$current = $chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)];
           break;
      case
'LNL':
           
$current = $chars[rand(0,25)].$chars[rand(26,35)].$chars[rand(0,25)];
           break;
      case
'LLN':
           
$current = $chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(26,35)];
           break;
      case
'NLL':
           
$current = $chars[rand(26,35)].$chars[rand(0,25)].$chars[rand(0,25)];
           break;
      case
'LLL':
           
$current = $chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)];
           break;
      case
'LL-L':
           
$current = $chars[rand(0,25)].$chars[rand(0,25)]."-".$chars[rand(0,25)];
           break;
      case
'L-LL':
           
$current = $chars[rand(0,25)]."-".$chars[rand(0,25)].$chars[rand(0,25)];
           break;
      case
'L-L-L':
           
$current = $chars[rand(0,25)]."-".$chars[rand(0,25)]."-".$chars[rand(0,25)];
           break;
      case
'LLLL':
           
$current = $chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)];
           break;
      case
'LLLLL':
           
$current = $chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)];
           break;
      case
'LLLLLL':
           
$current = $chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)];
           break;
      case
'LLNN':
           
$current = $chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(26,35)].$chars[rand(26,35)];
           break;
      case
'LLLN':
           
$current = $chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(26,35)];
           break;
      case
'LNNN':
           
$current = $chars[rand(0,25)].$chars[rand(26,35)].$chars[rand(26,35)].$chars[rand(26,35)];
           break;

      default:
             
$current = $chars[rand(0,25)].$chars[rand(0,25)].$chars[rand(0,25)];
    }

    
///////////////////////////////////////////////////////////////////////////////
    // Here is where we start checking domains
    // Feel free to add/remove domains or change whois servers
    
    
switch($ext)
    {
      case
'COM':
      case
'NET':
            
$registry = "whois.nsiregistry.net";
            break;
      case
'ORG':
            
$registry = "whois.pir.org";
            break;
      case
'INFO':
            
$registry = "whois.afilias.net";
            break;
      case
'BIZ':
            
$registry = "whois.biz";
            break;
      case
'US':
            
$registry = "whois.nic.us";
            break;
      case
'CO.UK':
            
$registry = "whois.nic.uk";
            break;
      case
'IN':
            
$registry = "whois.inregistry.net";
            break;
      default:
              
$registry = "whois.nsiregistry.net";
    }
    
    if(
checkdomain($registry, $current.'.'.$ext))
    {
        
        
      
      

        echo
strtoupper($current)." . ".$ext."<br />";
     
      
      
$i++;
      

    }    
    
ob_flush();
    
flush();
  }
  echo
"</font>";
}

?>

Last edited by RickM : 03-19-2008 at 12:00 PM.
RickM is offline   Reply With Quote
Old 03-19-2008, 11:05 AM   · #112
bbalegere
Senior Member
 
bbalegere's Avatar
 
Name: Bharat Balegere
Location: Bangalore
Trader Rating: (15)
Join Date: Jul 2005
Posts: 1,136
NP$: 485.65 (Donate)
bbalegere is just really nicebbalegere is just really nicebbalegere is just really nicebbalegere is just really nice
Thanks a million.
Waiting for the next release with option to exclude letters.
__________________
••Watch Lost Heroes Bionic Woman House••
bbalegere is offline   Reply With Quote
Old 03-19-2008, 01:19 PM   · #113
dax44
NamePros Member
 
Trader Rating: (7)
Join Date: Jan 2008
Posts: 155
NP$: 30.00 (Donate)
dax44 has a spectacular aura aboutdax44 has a spectacular aura about
Originally Posted by bbalegere
Thanks a million.
Waiting for the next release with option to exclude letters.



just modify the line:

$chars = array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9");


to whatever letters you want , for now.
__________________
.info $1.19 .com $7.15 @ CheapNames.com
dax44 is offline   Reply With Quote
Old 03-19-2008, 01:26 PM   · #114
Ja$on
Senior Member
 
Ja$on's Avatar
 
Name: Jason Hopkins
Location: San Diego
Trader Rating: (52)
Join Date: Jun 2003
Posts: 1,341
NP$: 603.96 (Donate)
Ja$on is a splendid one to beholdJa$on is a splendid one to beholdJa$on is a splendid one to beholdJa$on is a splendid one to beholdJa$on is a splendid one to beholdJa$on is a splendid one to beholdJa$on is a splendid one to behold
Animal Rescue
So if you remove the letters it will skip those in the list?
__________________
This line is for sale, PM me offers
This line is also for sale, PM me offers
Ja$on is online now   Reply With Quote
Old 03-19-2008, 01:31 PM   · #115
RickM
www.RickyMills.com
 
RickM's Avatar
 
Name: Rick Mills
Location: Herts, UK
Trader Rating: (90)
Join Date: Sep 2005
Posts: 3,440
NP$: 1230.52 (Donate)
RickM has much to be proud ofRickM has much to be proud ofRickM has much to be proud ofRickM has much to be proud ofRickM has much to be proud ofRickM has much to be proud ofRickM has much to be proud ofRickM has much to be proud ofRickM has much to be proud ofRickM has much to be proud of
Cancer Survivorship Save The Children Save The Children Cancer Animal Cruelty Child Abuse Cancer Survivorship 9/11/01 :: Never Forget Animal Cruelty Child Abuse Animal Rescue Animal Cruelty
You may have to adjust the "rand" part too, as it scans each part of the array based on its location (I.E 1 = "a", 2 = "b", 27 = "0" etc)

The one I'm doing will have some sort of checkbox list that lets you de-select the ones to display....quite easy to make. I'll probably release it over the weekend.
RickM is offline   Reply With Quote
Old 03-19-2008, 01:31 PM   · #116
Daniel
Danltn.com
 
Daniel's Avatar
 
Name: Daniel Neville
Location: Danltn.com / Nottingham, UK
Trader Rating: (65)
Join Date: May 2007
Posts: 1,162
NP$: 638.56 (Donate)
Daniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond repute
Ethan Allen Fund Ethan Allen Fund
PHP Code:
$chars = array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9");

PHP Code:
$chars = array_merge(range('A', 'Z'), range(0,9));



Last edited by Daniel : 03-19-2008 at 01:44 PM.
Daniel is offline   Reply With Quote