GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   mass check of nameservers(500 domains) (https://gfy.com/showthread.php?t=994594)

teomaxxx 10-27-2010 04:50 AM

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 10-27-2010 05:35 AM

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

Adraco 10-27-2010 05:38 AM

Where do you keep your domains?
Many registrars can give you a dump of your domains and their corresponding name servers.

SmellyNose 10-27-2010 06:06 AM

http://smellynose.com/d.php

Tested and works with .com and .co.uk at least

alias 10-27-2010 06:08 AM

Quote:

Originally Posted by SmellyNose (Post 17644799)
http://smellynose.com/d.php

Tested and works with .com and .co.uk at least

Cool tool.

fris 10-27-2010 06:14 AM

nice tool ;)

SmellyNose 10-27-2010 06:33 AM

Thanks guys :thumbsup

Now at version 0.002 where you can download your results and 'go again' :thumbsup

teomaxxx 10-27-2010 07:35 AM

Quote:

Originally Posted by Adraco (Post 17644744)
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.

The Usual Suspect 10-27-2010 07:48 AM

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

Adraco 10-27-2010 07:56 AM

Quote:

Originally Posted by teomaxxx (Post 17645005)
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.

fris 10-27-2010 08:22 AM

Quote:

Originally Posted by SmellyNose (Post 17644851)
Thanks guys :thumbsup

Now at version 0.002 where you can download your results and 'go again' :thumbsup

post the source code ;)

Official Babe 10-27-2010 09:38 AM

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?

SmellyNose 10-27-2010 10:17 AM

Quote:

Originally Posted by fris (Post 17645153)
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
}


:warning


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>";
}


teomaxxx 10-27-2010 10:18 AM

Quote:

Originally Posted by Official Babe (Post 17645399)
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.

Machete_ 10-27-2010 10:19 AM

Nice programming mr.Nose

:thumbsup

SmellyNose 10-27-2010 10:40 AM

Quote:

Originally Posted by Machete_ (Post 17645526)
Nice programming mr.Nose

:thumbsup

Gracias! :thumbsup

Hope it helps somebody :upsidedow

MrDaniel 10-27-2010 10:54 AM

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>


SmellyNose 10-27-2010 11:00 AM

Quote:

Originally Posted by MrDaniel (Post 17645646)
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.


All times are GMT -7. The time now is 02:38 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc