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.

I'm running multiple websites on a shared hosting service (sharing the one IP) that is also hosting many other websites out of my control. Doing a Bing 'ip:' search shows all these sites. There's quite a lot.

When I run a Tracert on these websites they all show the last hop's URL as one of the sites on the shared host. I'm wondering why it's showing that one URL in particular?

Is it possible to change which vhost gets shown as the last hop?

share|improve this question

1 Answer 1

The "vhost name" in traceroute is actually the reverse DNS entry for the IP address. To change what gets shown, change the DNS entry.

share|improve this answer
    
You should also only ever have one PTR record (reverse-dns) per IP address or else bad things can happen with lookups. When I have shared servers, I tend to give the PTR record a very generic name, and only the actual site name if it's got its own dedicated IP. –  Mark Henderson Jan 13 '10 at 2:44
    
Wouldn't that mean the reverse DNS entry should be shown when doing a nslookup on the IP address? Currently, nslookup [ip] shows the URI of the hosting company. Not the 'vhost entry' I was talking about. Also, how would it have been set to that in the first place? The IP is shared among many vhosts. So the DNS for the IP must be controlled by the hosting company. I doubt they set that reverse DNS entry...? This is quite confusing :/ –  peak Jan 13 '10 at 2:47
    
Give us the actual IP address you're talking about, so we can give concrete answers rather than hypothetical ones. –  womble Jan 13 '10 at 2:58
    
IP is 203.170.87.97 –  peak Jan 13 '10 at 3:01
1  
OK, now you have to share. <grin> You never know, it might help the next person. –  womble Jan 13 '10 at 4:10

Your Answer

 
discard

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