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: 184.108.40.206 Address: 220.127.116.11#53 Non-authoritative answer: mc-mattox.cybersprocket.com canonical name = dev.cybersprocket.com. Name: dev.cybersprocket.com Address: 18.104.22.168
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
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: 22.214.171.124 Address: 126.96.36.199#53 Non-authoritative answer: www.cybersprocket.com canonical name = cybersprocket.com. Name: cybersprocket.com Address: 188.8.131.52 [lcleveland@host ~]$ nslookup dev.cybersprocket.com Server: 184.108.40.206 Address: 220.127.116.11#53 Non-authoritative answer: Name: dev.cybersprocket.com Address: 18.104.22.168
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