Main Content

Routing Network Traffic - Proxies, Redirects and DNS

Archive - Originally posted on "The Horse's Mouth" - 2009-05-01 20:02:51 - Graham Ellis

If you point a domain at web server "X" when it's really hosted on web server "Y", you can either have web server "X" forward the request as a proxy, or you can have server "X" instruct the browser to try "Y" instead ... that's a redirect.

Which is best? A proxy forward hides server "Y" from the browser, but if server "X" has limited bandwidth it will use some of it up. The extra step will also be marginally slower. However, a redirect requires the browser to make a second request of a new server, and server "Y" will not be transparent to the browser.


When you visit a new web site, you'll call up a page based on the domain name ... however, the domain name does NOT tell the structure of the internet how traffic should be routes to the site as it's not based on the network structure - an IP address is required. So the Domain Name Service (DNS) is used to convert the domain name into an IP address, which does reflect the structure.

It works like this - your system (in the imserve.com domain in the example shown here) contacts its DNS server, which knows about DNS servers for its parent and child domains. So it can ask the .com server, which can ask the root server, which can ask .net, which can ask .wellho.net ... and the IP address then gets passed back doen the chain. Having completed that shenanigans, the original machine caches the IP address to save it the bother next time, and uses the IP address directly.