Setup DNS

It was a kind of confusion for me for such as long time, which was how to setup DNS server to host a website.  Today it has been all clarified and thanks to my director Jason Vogt.

The "Registrar" is the king of Domain Name world.  All the domain name must be registered there and declare which "Name Server" this domain is using.  All the registering service affiliates are connecting to the "Registrar" and updating the domain name information, such as Yahoo! or GoDaddy.  To find out who owns the domain name, we can easily go to http://www.whois-lookup.com/ and query the information.  The information listed will include the person or company who owns the domain name, contact info, name server info.

Then the "Registrar" will point the domain name to the name server.  The name server takes all the responsibilities to route the web traffic, relay emails and etc.  There are 5 major things need to be configured in name server: Starts of Authority, Name server, MX record, A record and C record. The "Start of Authority" is to match the information with the "Registrar", and "Name server" indicates the Domain Name/IP match.  The "MX record" is for email settings, including SMTP/POP server information (might be IMAP or Http also), while "A record" and "C record" refers to Affiliate and Host information respectively.  In this case, we can see Name server, A record and C record are web server related and MX record is email server related information.

When the Name server routes the web traffic to the specifically indicated web server, the web server will parse the request and read the Http Header information.  if the Http Header matches one of the website in this server, then web server to pass the request to this website and the website will handle it, and send Http Response back.  Then this is the full circle of one Http Transaction.

This is to help myself understand the web traffic better, and hope other people can take benefit from it too!

转载于:https://www.cnblogs.com/HenryLiang/archive/2007/02/10/From_Domain_Name_To_the_Website.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值