C
C
Chvalov2014-10-07 23:23:16
Domain name market
Chvalov, 2014-10-07 23:23:16

How to find all domains in a certain range of ip addresses?

Hello, there is a range of ip addresses for example 217.12.200.1 - 217.12.240.255
How can I find all domains in this range?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
olegsharapov91, 2019-01-15
@Chvalov

The problem is that you can hardly find all 100%, because. this information is not fully disclosed. Unless there is a dns transfer vulnerability, when all names can be requested from the server.
As usual get domains - brute on dictionaries. There are utilities like DirBuster, dirsearch, Sublist3r, gobuster. You can also scan online, with something like URL Fuzzer or METASCAN .
Well, you should never forget about the power of Google, look at shodan.io, censys.io, fofa.so, they can give out a lot of useful information by IP.

E
Elena, 2014-10-07
@Nidora

No way. Even if you find the right service, it will not provide accurate information.

P
PO6OT, 2015-06-11
@woonem

In PHP:

<?php
 $i1=217; $i2=12; $i3=200; $i4=1; //здесь надо вписать начало диапазона
 $a1=217; $a2=12; $a3=240; $a4=255; //здесь конец диапазона
 $o1=$i1; $o2=$i2; $o3=$i3; $o4=$i4;
 for( ; ; ){
  $host=gethostbyaddr($o1.'.'.$o2.'.'.$o3.'.'.$o4);
  if($host & $host != $o1.'.'.$o2.'.'.$o3.'.'.$o4)
   echo $o1.'.'.$o2.'.'.$o3.'.'.$o4.': '.$host."\r\n";
  $o4++;
  if($i3<$a3 or $i2<$a2 or $i1<$a1){
   if($o4>255){
    $o3++;
    if($i2<$a2 or $i1<$a1){
     if($o3>255){
      $o2++;
      if($i1<$a1){
       if($o2>255){
        $o1++;
        if($o1>$a1){
         break;
        }
        $o2=1;
       }
      }elseif($o2>$a2){
       break;
      }
      $o3=1;
     }
    }elseif($o3>$a3){
     break;
    }
    $o4=1;
   }
  }elseif($o4>$a4){
   break;
  }
 }
?>

O
Optimus, 2014-10-07
Pyan @marrk2

I was also interested in this, I came to the conclusion that you first need to have your own database of all ip domains, and for this the entire database of domains. And where can I get it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question