What is DNS and how does it work?
I know that DNS takes text (mydomain.com) and sets it up with an IP address. Well, one account that I pay for is on a shared server. When I bought my hosting, I was given two Name Server URLs, NS5.Myhost.com and NS6.Myhost.com. All I had to do was log into GoDaddy and put those name server listings into my domain settings and wait 24-48 hours (cjb.net takes about 15-30 minutes).
Here's what confuses me. On the server, my account is home/myaccount/public_html/ how exactly does my domain know to point to that path and not someone elses??? While I was waiting for my domain to update, I was given a temporary address of http://SERVERIP/~myaccount
Then when my domain worked, all the files were still there, just accessable from my domain!
Shared hosting is the biggest thing that confuses me. Like Astahost is shared hosting (right?). We're all squeesed together on a server and a community (so to speak). So how does Apache know that the website I have hosted here is in home/myaccount/public_html/? I have installed Apache on my Windows machine, and all I know is that I can set the server root to be in C:\WWW if I wanted it to. So how does Apache know that there are lots of directories to look in? Man! The webhosting business is complicated stuff!
Edited by microscopic^earthling, 29 June 2005 - 05:08 PM.