AgencyByte
technology for creatives

How Website Hosting Works (in Plain English)

February 16th, 2007 | by Brett Derricott

In the course of doing business the last few weeks at Agency Fusion I’ve had quite a few conversations where I’ve ended up explaining how domain names, hosting, and nameservers work and interrelate. Seems like a good sign that a clear, easy-to-understand explanation is in order.

To make as much sense as possible, let’s walk through a typical scenario where we’re setting up a website for a client. We’ll assume the design and development of the website are already done.

One important point to make before we get started is that you can often get everything you need from just one vendor (domain, DNS, and hosting) which is a convenient way to get it done. For our example we’ll assume you’re doing it all separately though, as it’ll help illustrate how all of the pieces fit together.

Domain Names

Step one is getting a domain name. You know, it’s the address for the website, like agencybyte.com.

To purchase a domain name we’ll need to use a registrar. Register.com and GoDaddy are two common registrars who have permission from ICANN to sell domain names.

Pricing for domain names is all over the map, from a few bucks to fifty dollars or more. Registrars all sell the exact same domain names so the only difference between them is the service they offer. It’s kind of like buying airfare from Expedia, Travelocity, or Orbitz. They’ll all sell you the same Delta flight but prices might vary and the extra services they offer might vary too. In the end, though, you’ll still be sitting in the same cramped seat on the exact same Delta flight regardless of who sells you the ticket.

Speaking of extra services a registrar might offer, be aware that you don’t actually need any of their services no matter how critical they may make it sound. Because domain name reselling is a lower-margin business than it used to be, upselling you on other stuff is their main game now. If in doubt, just buy the domain name.

We need to explain one more important thing about domain names before we move on. Every computer on the Internet has a unique number. It’s called an IP address. It’s like a phone number for each computer. That’s oversimplified, but it works for our purposes. A domain name is like an alias for that IP address…a more memorable way of identifying a computer on the Internet.

So…when you type in agencybyte.com that’s just an easier way of getting to my blog than remembering the IP address (70.87.126.226). Again, this is somewhat simplified, but that’s the goal right? To make this stuff easier to digest?

Nameservers (or DNS)

Step two is setting up nameservers or DNS for our newly-purchased domain name.

DNS is a commonly used acronym which, depending on context can mean Domain Name System or Domain Name Servers. Can you use it in a sentence, please? Sure…people usually say something like, “I need to setup DNS for my new domain name.” Or, they may ask, “What are the nameservers for our new domain?”

DNS is the least tangible and typically hardest part of the whole website setup process for people to understand so I’ll try to make it really simple.

Remember how the domain name (agencybyte.com) is like an alias for the IP address (70.87.126.226) of my blog? Well, someone has to keep track of that information. Someone has to be in charge of saying that agencybyte.com should “point” to 70.87.126.226. This is where DNS comes in.

Quite often the same company who sells you your domain name will also maintain this information but there are also companies who specialize in providing DNS services, such as EveryDNS.net. They have domain name servers, which are computers that keep track of all of this and are in charge of telling everyone that our new domain name goes to the IP address of the computer which has our new website hosted on it.

Makes sense right? Our new website won’t be hosted or stored on the same computers as, say, Apple’s website right? So there needs to be a way for domain names to take us to the right computers when we type them into our web browsers.

Now that we’ve mentioned that our website’s files won’t be on the same computer as apple.com or agencybyte.com, we’d better talk about where our website will be hosted.

Hosting

So at this stage we have a domain name and we also have domain name servers making sure that our domain name is properly routing visitors to our website when they type in the domain name.

Our actual website is just a bunch of files. HTML files, CSS files (stylesheets), images and photos, etc. All of these files need to be in a folder on a computer that is connected to the Internet. That computer is usually called a “server” because it serves up our website files when people come to visit. When you pay a company to put your files on their web server, you’re buying hosting. They are hosting your website on their servers.

So now that we have it all setup, here’s what happens when you visit the new website.

You type the domain name into your web browser. The DNS makes sure you get connected to the right computer. And that computer or server has your website files hosted on it. Let’s look at a diagram to make sure this all clicks in your head.

Agency Byte Hosting Diagram

Conclusion

Hopefully this overview of hosting, domain names, and DNS will at least provide some additional insights into how these important pieces of the Internet work. If you have any questions about something that isn’t clear or ideas to help other readers better understand this stuff, please post a comment below!

For more on demystifying technology mumbo jumbo, check out these Agency Byte articles.

Bookmark and Share

Comments

Jake Rutter  February 17th, 2007, 6:35 am

Nice Write-Up!

Rachel  February 18th, 2007, 4:51 pm

I always get confused with this stuff, but this is a really nice explanation, thank you!

Brett Derricott  February 18th, 2007, 4:55 pm

@Rachel: Thanks. Without doing this stuff day-in and day-out I think it’s tough to keep all of the pieces straight. Glad to know this helped a bit.

Agency Byte » Blog Archive » Building a Website is Like Building a House  July 23rd, 2007, 2:40 pm

[...] You’ll need to purchase a lot or a tract of ground before you can build a custom home. Likewise, on the Web you’ll need a domain name (the address of the website) and a hosting server (the physical location where your website files will reside) in order to make your website available for the world to visit. [...]

Agency Byte » Blog Archive » Building a Website is Like Building a House  July 23rd, 2007, 2:40 pm

[...] You’ll need to purchase a lot or a tract of ground before you can build a custom home. Likewise, on the Web you’ll need a domain name (the address of the website) and a hosting server (the physical location where your website files will reside) in order to make your website available for the world to visit. [...]

Gene Orrico  December 12th, 2007, 3:47 am

I’ve noticed that many entities have their own servers and
host their own websites. Is this an extra computer dedicated
as a server w/server software and a seperate domain name?
Have I got it right? What is necessary to host one’s own web?

Brett Derricott  December 12th, 2007, 9:35 am

@Gene: To host your own website(s) does require a computer with software called a “web server” installed. On computers running Microsoft Windows, the web server software is called IIS. On a Linux-based computer people commonly use Apache. One of the most important factors in hosting your own website on a server like this is a reliable and fast Internet connection. How reliable and how fast are dictated by how much traffic your website will receive. Also, this server must be configured to accept incoming connections. If there is a firewall blocking access to this computer, the outside world will never be able to view your website.

This is a pretty brief and high-level response but hopefully this helps! If not, feel free to ask another question. Good luck!

colin hunter  March 23rd, 2008, 4:59 pm

If websites only used IP addresses (e.g., instead of agencybyte.com users would type 70.87.126.226 in the URL bar on their browsers), would DNS services or functionality be required? Is DNS simply a liaison between the IP address and a domain name for better usability? Or is it an integral segment of the backend architecture?

Brett Derricott  March 24th, 2008, 8:08 am

@Colin: Great question! The role of DNS is, as you’ve stated, to translate domain names (like mydomain.com) into the IP addresses that are actually used by computers and networking equipment. If we did away with DNS and just used IP addresses for everything, there are a few things we’d sacrifice.

1. DNS also keeps track of mail servers for a given domain. It’s essentially a way of saying, “here is the address of the server that handles the mail for our domain.”

2. Multiple websites are often hosted on one IP address. The domain name is what tells the server which website the user wants to view. If we only used IP addresses, we’d be limited to just one website per IP address.

3. Obviously we’d also lose our minds if we had to keep track of the IP address for every website we frequently visit!

Does that answer your question, Colin?

colin hunter  March 31st, 2008, 5:02 pm

@brett – good question maybe, but great answer! I didn’t even think about mail servers….

Unique Article Wizard  April 1st, 2009, 10:21 pm

This is such a great explanation! I especially like the analogy of the isp and phone number. Thanks.

Jasmin  September 19th, 2009, 4:31 pm

Hi, im really new at this. I want to start a website, I have registered a domain name with company XYZ. I have signed up to webhosting with ABC. My question is, how do I use the domain I registered with XYZ when I am webhosting with ABC? Thanks again for any input if any.

Brett Derricott  September 21st, 2009, 8:02 am

@Jasmin: The key to using a domain purchased at XYZ with hosting purchased from ABC is another three letters…DNS. You’ll need to do one of the following:

First, you can change your nameserver settings for your domain to use the ABC nameservers instead of the XYZ nameservers.

Second, you can use the XYZ nameservers to point your domain to your website’s IP address at ABC.

Either company should be able to help you with the details. Hope that helps!

Mike  October 4th, 2009, 7:36 am

The ip address here (the 1 the dns points out) refers to the ip address of the pc where the website is hosted….right??

Brett Derricott  October 5th, 2009, 3:37 pm

@Mike: Yes, the IP address is that of the machine where the website is hosted.

yoyoimut  October 16th, 2009, 9:37 am

I am a newbie in web hosting mechanism.
I got much new knowledge from your above explanation.

I am interested in your statement as follows

“Multiple websites are often hosted on one IP address. The domain name is what tells the server which website the user wants to view. If we only used IP addresses, we’d be limited to just one website per IP address.”

Assume there are two domain name, e.g.,
AAAAA.com and BBBBB.com registered by different persons.
However, their websites are hosted on the same server using the same IP address.

How can the web server identify an incoming request whether the request is for AAAAA.com website or BBBBB.com website?
On the other words, how the web server admins configure the website for each domain?

Thank you in advance.
If you don’t mind, please forward your answer to my email: visual_cpp@programmer.net

Brett Derricott  October 20th, 2009, 8:18 am

@yoyoimut: The web server is configured to respond to the domain name sent in the request. Basically, the server has a rule setup that says: if someone wants a web page from AAAAA.com, it’s in this folder, if they want a page from BBBBB.com it’s in the other folder. Both websites are stored on the same server but the web site files are in separate folders.

Tom Harris  November 3rd, 2009, 11:48 am

Brett, you wrote that two DNS alternatives, given domain name at XYZ and hosting at ABC, were “First, you can change your nameserver settings for your domain to use the ABC nameservers instead of the XYZ nameservers. Second, you can use the XYZ nameservers to point your domain to your website’s IP address at ABC.”

Which of these operations is done via ABC’s control panel, and which at XYZ’s control panel?

I’m asking because I may have a case where I made a change at XYZ’s control panel, and meanwhile, a former hosting service, call it QRS, is making a change too, and I wonder what will happen.

Brett Derricott  November 3rd, 2009, 4:38 pm

Tom: To determine what will happen in the instance you’ve described, it all depends on which nameservers are in use. Are the XYZ nameservers being used or is the domain still using the former hosting service’s domain servers?

I’d suggest typing the domain into a tool like http://www.domaintools.com/ to see what they show for the domain servers. That’ll tell you where the authority is for that domain.

Let me know if you still have questions.

Battle of long tan download movie Private parts download movie The chronicles of riddick: dark fury download movie Sex lives of the potato men download movie The secret of moonacre download movie Allan quatermain and the temple of skulls download movie Wallace gromit in the curse of the were-rabbit download movie The last hangman download movie Irresistible download movie The Masque of the Red Death download movie Masters of the Universe download movie I due superpiedi quasi piatti download movie Tora! Tora! Tora! download movie Bella download movie The Abominable Dr. Phibes download movie Astérix et la surprise de César download movie The Sleepwalker download movie Pulse 2: Afterlife download movie The Meaning of Life download movie The Negotiator download movie Barbie and the Three Musketeers download movie Battle of long tan download movie Private parts download movie The chronicles of riddick: dark fury download movie Sex lives of the potato men download movie The secret of moonacre download movie Allan quatermain and the temple of skulls download movie Wallace gromit in the curse of the were-rabbit download movie The last hangman download movie Irresistible download movie