Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
First off I really appologise for asking a non-perl related question here, but you are the smartest group of web experts i've come across in my many years of web development and i'm sure someone will know the answer to this question :)

I have a client who i've done some web development for over the past couple of years, they have just asked me who their web site is hosted with, and I really don't know. They arranged the hosting themselves prior to my involvement in the site, and I just sign in via ftp. So how can I work out who hosts the site?

We need to contact them to move the site.

Many thanks,
Tom

Replies are listed 'Best First'.
Re: Where is my site hosted?
by traveler (Parson) on Sep 25, 2005 at 18:08 UTC
    It may seem trivial and non-technical, but someone is paying the bill. How about checking that?
Re: Where is my site hosted?
by Tanktalus (Canon) on Sep 25, 2005 at 17:27 UTC

    I think that, if you're somewhat lucky, traceroute or tracepath may tell you. If you're on Windows, I think the tool is trcroute.exe, I can't remember.

    $ /usr/sbin/tracepath www.perlmonks.org 1: 192.168.2.53 (192.168.2.53) 0.181ms pm +tu 1500 1: router (192.168.2.1) 1.798ms 2: 68.150.234.1 (68.150.234.1) asymm 47 92 +.337ms [ deleted since it's boring stuff... -Tanktalus ] 6: ge-6-1.car4.Seattle1.Level3.net (63.211.200.29) 49.929ms 7: ae-1-54.mp2.Seattle1.Level3.net (4.68.105.97) asymm 8 45 +.774ms 8: as-2-0.bbr2.Washington1.Level3.net (209.247.10.130) asymm 11 187 +.939ms 9: ge-9-0.ipcolo2.Washington1.Level3.net (4.68.121.44) asymm 11 194 +.012ms 10: unknown.Level3.net (64.156.240.30) asymm 16 119 +.202ms 11: 192.168.1.191 (192.168.1.191) asymm 15 127 +.592ms 12: perlmonks.pair.com (209.197.123.153) asymm 16 330 +.396ms reached

    By looking at some of the last IP addresses reached, you may be able to determine the hosting site. Again, if you're lucky ;-) Usually the router at an ISP is owned by that ISP, so if the site is behind the router, you may be able to see its name and figure it out. In PM's case, the router at 192.168.1.191 doesn't seem to be named, so it's hard to tell, but pair.com does give PM an alternate name that makes it quite obvious ;-)

      On windows it is tracert.exe.

      -sauoq
      "My two cents aren't worth a dime.";
      
Re: Where is my site hosted?
by jZed (Prior) on Sep 25, 2005 at 17:10 UTC
    Whois. Either type it at the command line on most *nix systems, or go here.
      That will tell me who registered it, but will it tell me which company is hosting it? What if the person who has registered it has forgotten who they registered it with and who they got to host the site?

        A good place to start might be to use whois to check the IP with arin.net: whois -h whois.arin.net xxx.xxx.xxx.xxx. That won't necessarily give you the final answer though. The best way would simply to ask your client to check who his payments are being made to.

        -sauoq
        "My two cents aren't worth a dime.";
        
        Look at the DNS servers, those are almost certainly provided by the host. Do a Whois on those.
        sauoq gave the correct answer; you want to do a whois on the IP address of the box. Traceroute will give you hints, but whois on an IP address is the authoritative answer.
Re: Where is my site hosted?
by CountZero (Bishop) on Sep 25, 2005 at 19:05 UTC
    Do a D-O-S attack on the webserver until it blows up and look in the papers for an explosion at a web-hosting company?

    Just kiddin'; I think indeed tracert will be the best bet to start with.

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

      Ha ha I like it! :) Don't think my client would be too impressed though!

      Learning without thought is labor lost; thought without learning is perilous. - Confucius
      British Artists
Re: Where is my site hosted?
by graff (Chancellor) on Sep 26, 2005 at 02:43 UTC
    Since you like us so much, why not join us -- sign up with your own personal user-id, and you'll get to use the Chatterbox, which is where non-perl questions like this can be discussed anytime without apologizing (or risking a visit from the Bony One.

      I'm already a member, was just at home and on a different computer and can never remember my username and password. But i'm back at work now and its all logged in for me.

      Thanks for the help, i've asked the client to check their invoices, but will probably try looking up the name servers as well and try those traceroute things see if that gives me any hints. Seems daft trying to find out where a site is hosted when i've been working on it for the past couple of years! Oh well.

      Thanks for all your help.
      Tom

      Learning without thought is labor lost; thought without learning is perilous. - Confucius
      British Artists
Re: Where is my site hosted?
by Anonymous Monk on Sep 26, 2005 at 09:01 UTC
    I would just look it up in the contracts. Invoices will be made - and those should reveal the details.
Re: Where is my site hosted?
by pboin (Deacon) on Oct 03, 2005 at 15:17 UTC

    For your future reference, and for others as well, here's a site with a web interface to lots of very interesting and useful tools:

    http://www.dnsstuff.com