What happens before you finally viewed this page?

Since past 1 week or so I am trying to make a small tiny light weight web server of my own, and for the same I have been referring to dozens of papers, websites, people and what not. I still haven’t finished making one, I am still toggling between Java and Python, since both seems to satisfy my needs and unfortunately I am master in none. While I was digging deep into the theory of how can I make a web server, I cleared many other concepts of mine, which finally leads to this post.

“What happens before you finally viewed this page/post of mine ?” – Many of you might know behind the scene stories and many like me might have a vague idea. But for the good of all those who don’t know and for people like me who needs a reference, I thought of better penning it down.

Lets see what possibly is going in the background:

  1. Suppose you type in http://www.yahoo.com in your web browser or clicked this link on some other page.
  2. Your browser see’s the above URL, and identifies it as a HTTP protocol.
  3. Then it breaks the URL into Protocol, Domain Name, File Name (in above case no file name is specified)
  4. Browser contacts its default DNS (Domain Name Server), which helps it with an IP Address. DNS is a huge distributed database which contains mapping of URL’s to IP Address. Your browser’s default DNS might or might not have the required mapping of URL to IPAddress.
  5. If it don’t have the IPAddress corresponding to http://www.yahoo.com , it will try to contact other root name servers for the required IPAddress.
  6. If it already have the IPAddress corresponding to http://www.yahoo.com (which is possible if a similar request has already been made recently) it will provide the required IPAddress to your browser.

And finally your browser then connects to the IPAddress it received and servers you the page returned back by Yahoo!. If you are still not clear about the process, following practical example might help you.

  1. I thought of starting a website and decided to name it as http://gtalkbots.com
  2. Firstly, I needed to register domain name with a registrant. For e.g. In my case I blocked the domain name gtalkbots.com with godaddy.com.
  3. Secondly, I needed to have a machine i.e. a place where I can have all my HTML, PHP files. So I bought a VPS (Virtual Private Server)
  4. Thirdly, I had to link the above two i.e. when someone types in http://gtalkbots.com in his browser, it should come to my VPS where I have my HTML files.
  5. For linking the domain name and my VPS, I simply make an ARecord entry at godaddy, telling it the IPAddress of my VPS. In turn when you type in http://gtalkbots.com in your browser, GoDaddy redirects you to my VPS. (Google for ARecord and CNAME for more details)
  6. Last 4 entries in the image above are for linking my gtalkbots.com domain with my google apps account, so that I can send and receive my gtalkbots.com email on google apps.

There is a lot more to it, however the info above is more than sufficient to understand the basics of
“What happens before you finally viewed this page/post of mine ?”

Google, Yahoo, Microsoft toolkit for startups

Welcome,

Well there is some good news for young entrepreneurs out there.

  • Google released Google Apps which can be used by for your websites email, hosting needs. You can use all the google applications (Gmail, Gtalk, Google docs, Calendar, Page Creator etc) for your site and all for free. This really helps one to focus more on the functionality and features of their website rather than wasting time in maintaining such trivial things. (Altertunes currently uses Google Apps without any problem)
  • In competition, Microsoft too have released Startup Center and Microsoft Office Live Basics, which includes Business plans for startups, Domain names, webspace and hosting with metrics, Accounting software, tools and etc.
  • And, Finally Yahoo India too started a similar thing for small businesses called Yahoo Small Business. However this comes at a nominal price of Rs 999/- per year (which is acceptable considering they give you domain name registration with this). The package includes Domain Name, Free 200 Business email ids, Site Solutions to design Website, 5 GB disk space, 200 GB data transfer and some free Ads slots.

Not to forget that Google have already released Google App Engine a few weeks ago which allows you to execute your application on google infrastructue.

Surely the competition in the market is benefiting the small entrepreneurs in the market.

Take full advantage of this and All the best for your startup.