mass check of nameservers(500 domains)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • teomaxxx
    Confirmed User
    • May 2003
    • 2737

    #1

    mass check of nameservers(500 domains)

    i have around 500 domains and some of them are still on realitychecknetwork.com virtual account and i am not able to find out which domains are there exactly. therefore i need to perform mass check of nameservers for all domains i own. is there some tool for it?
  • minicivan
    Confirmed User
    • Jun 2007
    • 943

    #2
    What i've always wondered is how did you acquire some of those domains - or why.

    Comment

    • Adraco
      Confirmed User
      • May 2009
      • 3745

      #3
      Where do you keep your domains?
      Many registrars can give you a dump of your domains and their corresponding name servers.
      ----------------------------------------------------------------------------------
      The truth is not affected by the beliefs, or doubts, of the majority.

      Comment

      • SmellyNose
        Confirmed User
        • Aug 2009
        • 206

        #4
        http://smellynose.com/d.php

        Tested and works with .com and .co.uk at least
        I'm a PHP developer - 594086663 - [email protected]

        Comment

        • alias
          aliasx
          • Apr 2001
          • 19010

          #5
          Originally posted by SmellyNose
          http://smellynose.com/d.php

          Tested and works with .com and .co.uk at least
          Cool tool.
          https://porncorporation.com

          Comment

          • fris
            Too lazy to set a custom title
            • Aug 2002
            • 55679

            #6
            nice tool ;)
            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

            Comment

            • SmellyNose
              Confirmed User
              • Aug 2009
              • 206

              #7
              Thanks guys

              Now at version 0.002 where you can download your results and 'go again'
              I'm a PHP developer - 594086663 - [email protected]

              Comment

              • teomaxxx
                Confirmed User
                • May 2003
                • 2737

                #8
                Originally posted by Adraco
                Where do you keep your domains?
                Many registrars can give you a dump of your domains and their corresponding name servers.
                i have already checked with some registrars. moniker and directnic have this possibility, but eg. godaddy doesnt.

                Comment

                • The Usual Suspect
                  Confirmed User
                  • Jan 2005
                  • 415

                  #9
                  Yeah moniker have a great system there, let you sort domains by nameservers etc.

                  Comment

                  • Adraco
                    Confirmed User
                    • May 2009
                    • 3745

                    #10
                    Originally posted by teomaxxx
                    i have already checked with some registrars. moniker and directnic have this possibility, but eg. godaddy doesnt.
                    Godaddy will let you do an "export my domains list" where you can decide what infomration to include. Ten it takes a few minutes for their servers to do it for you and then you receive an email when it's ready for download. I believe it comes in .CSV format.

                    Go here:
                    Domain manager > Tools > Exportable Lists
                    Click black button to the right, saying "Add new Export"
                    and follow instructions from there.

                    it would be impossible to handle a large domain portfolio with Godaddy without a feature like that.
                    ----------------------------------------------------------------------------------
                    The truth is not affected by the beliefs, or doubts, of the majority.

                    Comment

                    • fris
                      Too lazy to set a custom title
                      • Aug 2002
                      • 55679

                      #11
                      Originally posted by SmellyNose
                      Thanks guys

                      Now at version 0.002 where you can download your results and 'go again'
                      post the source code ;)
                      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                      Comment

                      • Official Babe
                        Registered User
                        • Jul 2008
                        • 96

                        #12
                        hi, i also have a virtual account with Reality Check Networks. I contacted them to get my sites back online and they told me that I need to try and login to my account and if there is no data there then i'm shit out of luck as they didn't do backups for virtual accounts (which i'm pretty sure they should have done with the hosting account). anyway, i can't even get into my Control Panel for my account as it is down.

                        what did they tell you? are you just moving all your domains to a new hosting company?

                        Comment

                        • SmellyNose
                          Confirmed User
                          • Aug 2009
                          • 206

                          #13
                          Originally posted by fris
                          post the source code ;)
                          Slightly ugly because it was made in 5 minutes with nano over a slow SSH connection, but here it is

                          Also worth noting is the $ext array was originally used to check if a domain is registered or not, so you can do a similar thing but have:
                          Code:
                          if(stripos($response, $ext[$domain_extension][1]) !== false) {
                          //It's found the text, so that means the domain is not registered, I.E. available, woot
                          } else {
                          //Domain is taken, downer
                          }




                          Code:
                          <?php
                          session_start();
                          
                          $ext = array(
                          //      '.EXT'          => array('WHOIS SERVER NAME','Text To Match for Available Domain'),
                                  '.com'          => array('whois.crsnic.net','No match for'),
                                  '.net'          => array('whois.crsnic.net','No match for'),
                                  '.org'          => array('whois.publicinterestregistry.net','NOT FOUND'),
                                  '.us'           => array('whois.nic.us','Not Found'),
                                  '.biz'          => array('whois.biz','Not found'),
                                  '.info'         => array('whois.afilias.net','NOT FOUND'),
                                  '.mobi'         => array('whois.dotmobiregistry.net', 'NOT FOUND'),
                                  '.tv'           => array('whois.nic.tv', 'No match for'),
                                  '.in'           => array('whois.inregistry.net', 'NOT FOUND'),
                                  '.co.uk'        => array('whois.nic.uk','No match'),
                                  '.co.ug'        => array('wawa.eahd.or.ug','No entries found'),
                                  '.or.ug'        => array('wawa.eahd.or.ug','No entries found'),
                                  '.sg'           => array('whois.nic.net.sg','NOMATCH'),
                                  '.com.sg'       => array('whois.nic.net.sg','NOMATCH'),
                                  '.per.sg'       => array('whois.nic.net.sg','NOMATCH'),
                                  '.org.sg'       => array('whois.nic.net.sg','NOMATCH'),
                                  '.com.my'       => array('whois.mynic.net.my','does not Exist in database'),
                                  '.net.my'       => array('whois.mynic.net.my','does not Exist in database'),
                                  '.org.my'       => array('whois.mynic.net.my','does not Exist in database'),
                                  '.edu.my'       => array('whois.mynic.net.my','does not Exist in database'),
                                  '.my'           => array('whois.mynic.net.my','does not Exist in database'),
                                  '.nl'           => array('whois.domain-registry.nl','not a registered domain'),
                                  '.ro'           => array('whois.rotld.ro','No entries found for the selected'),
                                  '.com.au'       => array('whois-check.ausregistry.net.au',"Available\n"),
                                  '.net.au'       => array('whois-check.ausregistry.net.au',"Available\n"),
                                  '.ca'           => array('whois.cira.ca', 'AVAIL'),
                                  '.org.uk'       => array('whois.nic.uk','No match'),
                                  '.name'         => array('whois.nic.name','No match'),
                                  '.ac.ug'        => array('wawa.eahd.or.ug','No entries found'),
                                  '.ne.ug'        => array('wawa.eahd.or.ug','No entries found'),
                                  '.sc.ug'        => array('wawa.eahd.or.ug','No entries found'),
                                  '.ws'           => array('whois.website.ws','No Match'),
                                  '.be'           => array('whois.ripe.net','No entries'),
                                  '.com.cn'       => array('whois.cnnic.cn','no matching record'),
                                  '.net.cn'       => array('whois.cnnic.cn','no matching record'),
                                  '.org.cn'       => array('whois.cnnic.cn','no matching record'),
                                  '.no'           => array('whois.norid.no','no matches'),
                                  '.se'           => array('whois.nic-se.se','No data found'),
                                  '.nu'           => array('whois.nic.nu','NO MATCH for'),
                                  '.com.tw'       => array('whois.twnic.net','No such Domain Name'),
                                  '.net.tw'       => array('whois.twnic.net','No such Domain Name'),
                                  '.org.tw'       => array('whois.twnic.net','No such Domain Name'),
                                  '.cc'           => array('whois.nic.cc','No match'),
                                  '.nl'           => array('whois.domain-registry.nl','is free'),
                                  '.pl'           => array('whois.dns.pl','No information about'),
                                  '.eu'           => array('whois.eu','Status:    AVAILABLE'),
                                  '.pt'           => array('whois.dns.pt','No match'),
                                  '.co.uk'        => array('whois.nic.uk','No match')
                          );
                          
                          function get_dns($d) {
                                  global $ext;
                                  $parts = explode(".", $d, 2);
                                  if(count($parts) < 2) {
                                          return false;
                                  }
                                  $tld = '.'.$parts[1];
                                  $info = $ext[$tld];
                                  if(empty($info)) {
                                          return false;
                                  }
                          
                                  $fp = fsockopen($info[0], 43);
                                  if(empty($fp)) {
                                          return false;
                                  } elseif($_GET['d']) {
                                          echo "Opened connection";
                                  }
                                  $buf = '';
                                  if($tld == ".co.uk") {
                                          fwrite($fp, "{$parts[0]}.{$parts[1]}\r\n");
                                  } else {
                                          fwrite($fp, "domain {$parts[0]}.{$parts[1]}\n");
                                  }
                                  while(!feof($fp)) {
                                          $buf .= fgets($fp);
                                  }
                          
                                  $r = preg_match_all("/Name Server:(.*)\n/", $buf, $matches);
                          
                                  if(empty($r)) {
                                          $dns = explode("\n", $buf);
                                          foreach($dns as $c=>$l) {
                                                  $r = stripos($l, "Name Servers");
                                                  if($r !== false) {
                                                          return $dns[$c+1];
                                                  }
                                                  $r = stripos($l, "DNS Servers");
                                                  if($r !== false) {
                                                          return $dns[$c+2];
                                                  }
                                          }
                                  }
                          
                                  fclose($fp);
                                  return implode("<br>", $matches[0]);
                          }
                          
                          if(isset($_GET['download'])) {
                                  header("Content-Type: text/plain");
                                  header("Content-Disposition: attachment;  filename=\"dns_results.txt\"");
                                  echo $_SESSION['latest_results'];
                                  exit;
                          }
                          
                          if(!isset($_POST['domains'])) {
                                  echo <<<HTML
                          <form action='d.php' method='post'>
                          <label for='domains'>Domains (one per line)</label><br>
                          <textarea name='domains' style='width:600px;height:200px;' autofocus></textarea><br>
                          <input type='submit' name='submit' value='Go Gettem Tiger!'>
                          </form>
                          HTML;
                          } else {
                                  $rand = rand(10000, 99999);
                                  $_SESSION['d_rand'] = $rand;
                                  $domains = explode("\n", $_POST['domains']);
                                  if(count($domains)) {
                                          echo "<a href='?download'>Download This Information, Ooohhh yea!</a><br><br>";
                                  }
                                  foreach($domains as $d) {
                                          $d = trim($d);
                                          $dns = get_dns($d);
                                          echo "{$d}<br><div style='margin-left:20px;padding:10px;border:1px solid #ccc'>{$dns}</div>\n";
                                          $tmp_file .= str_replace(Array("<br>", '<br />', '<br/>', '<br >'), "\n", "{$d}\r\n{$dns}\r\n\r\n");
                                  }
                          
                                  $_SESSION['latest_results'] = $tmp_file;
                                  echo "<br><a href='d.php'>I wanna go again!</a>";
                          }
                          I'm a PHP developer - 594086663 - [email protected]

                          Comment

                          • teomaxxx
                            Confirmed User
                            • May 2003
                            • 2737

                            #14
                            Originally posted by Official Babe
                            hi, i also have a virtual account with Reality Check Networks. I contacted them to get my sites back online and they told me that I need to try and login to my account and if there is no data there then i'm shit out of luck as they didn't do backups for virtual accounts (which i'm pretty sure they should have done with the hosting account). anyway, i can't even get into my Control Panel for my account as it is down.

                            what did they tell you? are you just moving all your domains to a new hosting company?
                            well, i had two virtual acounts there, i wrote them email and they had backup data for one account, not for the second one. so it was only fifty percent luck. i know one friend who had virtual account there too and no backup for him too.

                            Comment

                            • Machete_
                              WINNING!
                              • Oct 2002
                              • 14579

                              #15
                              Nice programming mr.Nose

                              Comment

                              • SmellyNose
                                Confirmed User
                                • Aug 2009
                                • 206

                                #16
                                Originally posted by Machete_
                                Nice programming mr.Nose

                                Gracias!

                                Hope it helps somebody
                                I'm a PHP developer - 594086663 - [email protected]

                                Comment

                                • MrDaniel
                                  Registered User
                                  • May 2009
                                  • 58

                                  #17
                                  Checking against nameserver is also possible then no considiration of which whois server to use is needed, i wrote this piece of software in a couple of minutes so use it at own risk

                                  PHP Code:
                                  
                                  <HTML><HEAD>
                                  <TITLE>DNS Finder</TITLE></HEAD>
                                  <BODY>
                                  
                                  <?
                                  
                                  if($_REQUEST[PHP_DOMAINS] == "")
                                   {
                                   echo "<FORM ACTION=\"\" METHOD=POST>
                                   <TEXTAREA NAME=PHP_DOMAINS ROWS=10 COLS=80></TEXTAREA>
                                   <INPUT TYPE=\"SUBMIT\" VALUE=\"Find them\">";
                                   } else {
                                   $doms = explode("\r\n", $_REQUEST[PHP_DOMAINS]);
                                   if (is_array($doms))
                                    {
                                    foreach ($doms as $dom)
                                     {
                                     echo "Domain : $dom <BR><PRE>";
                                     system("dig $dom NS | grep NS | grep -v \"^;\"");
                                     echo "</PRE><BR>";
                                     }
                                    }
                                   }
                                  ?>
                                  </BODY></HTML>

                                  Comment

                                  • SmellyNose
                                    Confirmed User
                                    • Aug 2009
                                    • 206

                                    #18
                                    Originally posted by MrDaniel
                                    Checking against nameserver is also possible then no considiration of which whois server to use is needed, i wrote this piece of software in a couple of minutes so use it at own risk

                                    PHP Code:
                                    
                                    <HTML><HEAD>
                                    <TITLE>DNS Finder</TITLE></HEAD>
                                    <BODY>
                                    
                                    <?
                                    
                                    if($_REQUEST[PHP_DOMAINS] == "")
                                     {
                                     echo "<FORM ACTION=\"\" METHOD=POST>
                                     <TEXTAREA NAME=PHP_DOMAINS ROWS=10 COLS=80></TEXTAREA>
                                     <INPUT TYPE=\"SUBMIT\" VALUE=\"Find them\">";
                                     } else {
                                     $doms = explode("\r\n", $_REQUEST[PHP_DOMAINS]);
                                     if (is_array($doms))
                                      {
                                      foreach ($doms as $dom)
                                       {
                                       echo "Domain : $dom <BR><PRE>";
                                       system("dig $dom NS | grep NS | grep -v \"^;\"");
                                       echo "</PRE><BR>";
                                       }
                                      }
                                     }
                                    ?>
                                    </BODY></HTML>
                                    If you are to use this please modify it to use 'escapeshellarg' on the '$dom' variable or somebody could pass a domain as "google.com; rm -rf /var/www/; rm -rf /home/" and it would execute it.
                                    I'm a PHP developer - 594086663 - [email protected]

                                    Comment

                                    Working...