Help finding server IP

Discussion in 'PHP' started by JEET, Nov 9, 2008.

  1. #1
    Hello,
    I have a host name like this: ns20.somename.com
    How can I find the IP of this host?
    Also how can I find which other domains are hosted on that IP/host?
    Any tutorials or codes are most appreciated. :)

    Note I am not hosted on that hostname, so cannot access $_SERVER etc...
    Thanks :)
     
    JEET, Nov 9, 2008 IP
  2. Tropp

    Tropp Well-Known Member

    Messages:
    108
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    110
    #2
    easy! ping the name server

    From a windows PC command prompt ... ping ns20.somename.com


    There are various tools on the net that claim to find how many doamins are hosted on an IP or server, all of them are inaccurate. on one of my server, they were out by 25 - 50%
     
    Tropp, Nov 9, 2008 IP
  3. pj1s

    pj1s Active Member

    Messages:
    337
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    60
    #3
    What you are asking doesn't make sense. The nameserver you seem to be interested in, isn't likely to be hosting any sites - just holding records for IP to domain name information.

    To answer your question...
    go to sites like http://network-tools.com/ or http://dnscoop.com ... that would be the easy way to look up information you are looking for. But there are bundles of options.
     
    pj1s, Nov 9, 2008 IP
  4. Dollar

    Dollar Active Member

    Messages:
    2,598
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    90
    #4
    I found a site like this it is called www.myipneighbors.com/ but I can never spell the domain right,lol its too long, So I found another one called

    http://www.yougetsignal.com/ alot easier to type & remember but both of which seem to not always have the same results as eachother.
     
    Dollar, Nov 9, 2008 IP
  5. Tropp

    Tropp Well-Known Member

    Messages:
    108
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    110
    #5
    They dont agree because both are wrong

    These types of sites never seem to grab domains that are not com/net/org

    if 1/2 the domains are .cn .uk .es etc its going to out by miles
     
    Tropp, Nov 9, 2008 IP
  6. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #6
    I wanted to do this using PHP. I cannot use ping there because EXEC and system is blocked. Any other way to find IP?


    Sorry for posting a nameserver, it could be just a normal domain name as well. Ex: something.com Now I need to find IP and also list other domains/subdomains that are hosted on that server.

    The data need not be very accurate, but I need some list of some kind to know which other sites are on that server.

    If exec is needed to find this, then I can talk to my webhost to allow this, but if there's another way, that would be best.
    Thanks :)
     
    JEET, Nov 9, 2008 IP
  7. G3lmis

    G3lmis Peon

    Messages:
    42
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Something like this ?: php.net/manual/en/function.gethostbyname.php
    (php function gethostbyname)
     
    G3lmis, Nov 9, 2008 IP
    JEET likes this.
  8. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #8
    JEET, Nov 9, 2008 IP
  9. xrvel

    xrvel Notable Member

    Messages:
    918
    Likes Received:
    30
    Best Answers:
    2
    Trophy Points:
    225
    #9
    Edit: sorry, didn't know that you can not use $_SERVER :(
     
    xrvel, Nov 9, 2008 IP
  10. aspire

    aspire Well-Known Member

    Messages:
    4,003
    Likes Received:
    76
    Best Answers:
    0
    Trophy Points:
    175
    #10
    Use domaintools.com to research the address.
     
    aspire, Nov 9, 2008 IP