It is my understanding that DNS simply maps a domain name into an IP address. I realize that there is a lot more involved behind the scenes and there is other functionality, and perhaps some of that will explain what I am seeing.
If I enter the address
http://volokh.com/ into a web browser, it displays a web page for "The Volokh Conspiracy". If I use ping, nslookup, or tracert with the domain name "volokh.com", they all tell me that it maps to IP address 174.37.144.148. But when I enter
http://174.37.144.148/ into my web browser, I get a different web page - a "placeholder page" for some software called "cPanel" running under Apache.
Any idea what is going on? Shouldn't this give me "The Volokh Conspiracy"?
Thanks in advance for your replies.
Software/Hardware used:
Windows XP, Firefox
ASKED:
February 1, 2010 7:15 AM
UPDATED:
February 1, 2010 5:49 PM
Thanks for your answers; they have been most helpful. Just to confirm that I grok this:
The client system uses DNS to translate “volokh.com” to “174.37.144.148″ and sends the HTTP request to that address. While at the TCP/IP level, the packet is not addressed to “volokh.com”, the web client includes an HTTP HOST header that specifies “volokh.com”. When the web server (Apache in this case) receives the HTTP request, it looks at the HOST header and decides which content to serve based on that. So when I browse to http://174.37.144.148/, it gets to the same web server, but it does not know that I am looking for the “volokh.com” content and serves content based on the defaults.
Is this correct?
You have summarized the process exactly.