title: How Short URL works?
body: <p>I'm thinking of implementing a short/friendly URL system in my company.</p>
  
  <p>I've read a lot of articles describing how to do it. I understand the process but I still have some questions: we have server A and client B. Server A has all the logic for URL rewriting and redirecting. But how can Client B, external to that server but in the same domain, know what is the hostname or IP for <a href="http://server.A/theURL" rel="nofollow">http://server.A/theURL</a>? If the name of "server.A" is not known for the client it'll return an "unknown host" error. How can you "publish" that short url "domain" in the network? I don't think you have to modify the .hostname files of every single PC...</p>
  
  <p>Thanks,</p>