Domain to IpAddress Tool

Discussion in 'Site & Server Administration' started by MakeADifference, Oct 27, 2009.

  1. #1
    Hello,
    I need to find ipaddress of about 250 directory domains.
    I had bookmarked one website that has capability to do bulk domain to ipaddress check, but I lost it.

    Does anyone know of any website where I can do this check?

    Thanks A Lot.
     
    MakeADifference, Oct 27, 2009 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
  3. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #3
    just write a php script and call gethostbyaddr() function to get IP.
     
    olddocks, Oct 30, 2009 IP
  4. nikb

    nikb Peon

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Reported Attack Site!

    This web site at www.analogpoint.com has been reported as an attack site and has been blocked based on your security preferences.

    Attack sites try to install programs that steal private information, use your computer to attack others, or damage your system.

    Some attack sites intentionally distribute harmful software, but many are compromised without the knowledge or permission of their owners.

    You can try site in my signature.
     
    nikb, Oct 31, 2009 IP
  5. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #5
    Wierd it was all fine the day i posted it here
     
    Bohra, Oct 31, 2009 IP
  6. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #6
    You can use PHP function gethostbyname() to obtain IP address of the websites. Following are the sample code. Just create a mysql table and enter all your domain name.

    <?php
    $con = mysql_connect("localhost","user","password");
    if (!$con)
      {
      die('Could not connect: ' . mysql_error());
      }
    
    $DB = "domains";
    mysql_select_db($DB);
    $sql = mysql_query("SELECT * FROM domainname");
    echo "<table>";
    while($result = mysql_fetch_array($sql)) {
    $domain = $result["name"];
    if ($domain != "")
    {
    echo "<tr>";
    echo "<td>".$domain."</td>";
    echo "<td>".gethostbyname($domain)."</td></tr><br>";
    }
    }
    echo "</table>";
    
    mysql_close($con);
    
    ?>
    
    Code (markup):
    Make sure you make the required changes in database name and table name.

    Kailash
     
    kailash, Nov 2, 2009 IP
  7. new

    new Peon

    Messages:
    1,433
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    0
    #7
    new, Nov 3, 2009 IP