Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there any way you can locate the Server of a Webpage? I am wondering this in case I want make a webpage on the same server or something like that.

share|improve this question
    
what do you mean be "local the server of a webpage" ? Find out its physical location? –  Keiran Holloway Jun 20 '10 at 2:01
    
do you mean, you want to find the hostname of the sever where a webserver is running? –  Nikolas Sakic Jun 20 '10 at 6:36

3 Answers 3

You can often determine the owner or operator of a web site by using the whois command or a whois server.

whois example.com

Or try this Verisign whois server (one of many).

share|improve this answer

Your question is not very clear. If you want to lookup IPs you can use also use tools such as MaxMind's geographic IP location database or ARIN's whois lookup.

share|improve this answer

You are looking for a way to know where the server is actually hosted (the actual hosting provider).

You can try this (using bash):

whois "$(dig +short www.codealpha.net | grep -m1 '^[0-9]')"

In this case, this returns

OrgName:    Linode
[...]

This can be tweaked and improved.

Here's a way to do it in a bash function:

#!/bin/bash

function whathost()
{
  whois "$(dig +short "$1" | grep -m1 '^[0-9]')"
}

whathost linux.com

Notes:

Note that some results will probably not meaningful, this is because they own the IP address and host their own server.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.