Posted on

Where Is This Website Hosted?

When I come across one of the many staging or development servers that have not been active in a while I use the following techniques to locate where the website is living. It can be on any one of our servers, a server owned by the client, or a temporary virtual machine.

I always do an nslookup when I’m not sure and then look in the Apache config file on the “offending” server…

First find the thing I’m looking for…

[lcleveland@host ~]$ nslookup mc-mattox.cybersprocket.com
 Server: 69.16.234.115
 Address: 69.16.234.115#53

Non-authoritative answer:
mc-mattox.cybersprocket.com canonical name = dev.cybersprocket.com.
Name: dev.cybersprocket.com
Address: 70.89.150.194

This is easy because it is a CNAME to our dev server, but if it was a standard A record I’d only have the IP address. I usually compare the IP address to an nslookup on dev.cybersprocket.com or live.cybersprocket.com and if it is not on there do a general WHOIS from google on the IP address to locate the IPP.

Here are my two lookups for finding this particular domain on CSL servers:

[lcleveland@host ~]$ nslookup www.cybersprocket.com
Server: 69.16.234.115
Address: 69.16.234.115#53

Non-authoritative answer:
www.cybersprocket.com canonical name = cybersprocket.com.
Name: cybersprocket.com
Address: 72.52.158.194

[lcleveland@host ~]$ nslookup dev.cybersprocket.com
Server: 69.16.234.115
Address: 69.16.234.115#53

Non-authoritative answer:
Name: dev.cybersprocket.com
Address: 70.89.150.194

Now I know it is on the CSL dev box. I can login there to a privileged account and look at the Apache config (/etc/httpd/conf/httpd.conf on a RHEL box like CentOS) and find the matching mc-mattox.cybersprocket.com entry.