Recently, in a class I was assisting at, a question came up that involved understanding who has permissions to change what shows up for a given domain name.
- Three Roles of Hosting
- Permissions, Roles
Three Roles of Hosting
There are three major roles involved in getting your web site content displayed to a user:
- The Web Site Host, who sells you your web hosting package.
- The Registrar, who sells you your domain name.
- The Domain Name Service, aka DNS, who connects your domain name with your web site.
All three of these roles might be fulfilled by the same company; a company such as Gandi.net provides all three of these services. Sometimes, they are fulfilled by different companies. Sometimes, you may be providing some of these parts if you’re a hosting reseller.
In a Nutshell
|Web Host||Registrar||Domain Name Service|
|Provides space for web site contents, which you decide how to fill.||Registers domain name.||Connects domain name and IP address.|
|Provides IP address to web site contents.||Lets domain name owner decide who will provide the domain name service||Lets the DNS record owner decide how the IP address will be resolved|
|Serves web site content when a request comes to the IP address|
The Web Site Host
The Web Site Host, aka “web hosting service”, aka “host”, is who you rent space from to hold the files of your web site. The host provides you with an IP Address, a sequence of 4 numbers, e.g. 188.8.131.52. (This is IP version 4, IPv4. There is also IP version 6, IPv6, where the numbers look a lot different, like so: 2601:443:1:1605:e4de:d6dd:4943:326d ) That address is precisely where the world will find your website. As no one wants to remember a set of numbers like that, we have domain names.
When you rent space, you provide the actual content (html, images, scripts, css, etc.) that will be displayed to the user, and the host provides the web server that will display that information when asked for at that IP address. You are given complete control over the files that will be displayed. (If you aren’t, change web hosts.)
The Registrar is who you buy your domain name from. Domain names aren’t so much “bought” as “rented”, as you can only remain in control of the name as long as you pay an annual fee for that name.
You are given control over the domain name to be able to say what DNS will be used to resolve your name. “Resolve” is the term that says “My domain name points to this IP address”, and is a rather complicated, messy process that we’re all glad someone else maintains.
The Domain Name Service
The DNS provides the glue between your domain name and your web site IP address. The DNS lets you say how your domain will resolve to that IP address, and provides the servers that perform that resolution. You are given control (possibly limited) over how that resolution happens. As the actual records that perform the mapping can seem rather arcane, most DNS providers give you an easier way to manage those entries.
In most cases, you’ll want an A record that directly maps a domain name to an IP address. Sometimes you will want a CNAME record that maps one domain name to another. Wikipedia has a complete list of DNS record types
The hypothetical scenario from the class, “If I’m hosting my boyfriend’s website, and I want to change change where it’s pointing to, could I do that?” comes down to this: who owns what?
Domain Name Ownership
The person who buys a domain name from a registrar has the ability to change where that domain is resolved. If your boyfriend bought, then he can decide. If you bought it on his behalf, you can change it. If you have access to his account at the registrar, you can change it, but he can change it back.
Web Site Content Ownership
Some of you have taken advantage of the web hosting reseller package, in which case, you can be a web hosting provider yourself. As someone who sells such a service, you can control what is on your customer’s site, but just like your upstream provider, you wouldn’t really want them to do that. But again, you have the power to change things.
Domain Name Service Resolution Ownership
This can be the tricky part, because, again in the case where you’re doing the hosting reseller thing, you will likely also have the control over the DNS record, and could point your boyfriend’s domain name at a different IP address (A record), or another domain name (CNAME record).
Ultimately, like most everywhere else on the net, if you have the credentials to change something, you can. It isn’t always ethical to do so, of course.