Jump to content

domains


c_pattle

Recommended Posts

Domains are simply a function of the DNS system.  The DNS system does one simple thing: turn domain names into IP addresses.

 

So first and foremost a subdomain is defined in your DNS system.  In DNS you have a zone file for every domain you own which defines the name to IP address conversion.  With a domain you can define in your zone file any number of subdomains you want. 

 

In terms of websites, in the old days, webservers could only support one website per IP address combination. 

 

This was amended to support the addition of of an http host header in http 1.1 which facilitated the addition of vhost capabilities.  In DNS you can have many different names all resolving to the same IP address.  As IPv4 addresses have become a precious commodity, it has become common practice for people to host many different websites on the same server, with the same public IP address.  This works, because browsers now send the http host header, and websites will read this header and determine which website to serve up for a given client request.

 

In a nutshell, subdomains are entirely a DNS function, while websites are a function of the webserver. 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.