What Exactly? The Ins and Outs of Subdomains

Reading Time: 3 minutes

Domain

www.merriam-webster.com is pretty much the go-to online dictionary of choice these days, and it offers a full 10 different categorical definitions for the word domain, but most people will understand it to mean ‘space thats yours.’ The prefix ‘sub-‘ generally indicates a state of being beneath or under the suffix, whether literally or figuratively. Here at 4GoodHosting, we’re web hosting experts in Canada but we’re the furthest thing from that when it comes to dictionaries.

Just this once though we’ll take a dissection approach to the word subdomain, and talk briefly about how it relates to web hosting as a whole. If we’re taking the literal meaning of it based on what’s explained above, it means ‘under space’ and while that’s vague and indeterminate it’s still fairly applicable.

A subdomain is the part of the website address before the domain name. More in sticking with our definition here though, subdomains are known as ‘third level’ domains, or canonical names, and as such they’re ‘beneath’ a website’s standard URL that’s registered, recognized, and functional within web directories. To put it more simply and understandably, a website’s URL will begin with the very recognizable http: (hyper text transfer protocol) – but you’re probably more familiar with it as it’s subdomain – www.______. com / ca etc etc.

Let’s use Merriam-Webster again as our example here. Their URL is https://www.merriam-webster.com/ but you’ll know them and link them with subdomain shown up on the first line of this blog post. That’s a subdomain!

So why subdomains?

Subdomains are commonly used to categorize portions of the website, and they can be easily moved to another server if the category gets very popular.

Subdomains are also used by free web hosting providers to resell web space under their own domain name (e.g. http://membername.hostname.com). Each member will have their subdomain, but every one of them there will still share the domain name of the hosting provider.

Subdomain names are also practical to balance the web servers for a high traffic website. Multiple web servers are assigned different subdomains like www.sitename.com, www1.sitename.com, www2.sitename.com etc, though each of them contain the same application code. When the request comes from the browser, the load balancing software redirects it to one of these servers. DNS load balancing is a simple method of load balancing using subdomains pointing to different IP addresses.

Webmaster Considerations

First and foremost, subdomains makes the URLs shorter and easier on the eyes. It allows website owners to categorize the content of the website, and – most importantly – facilitates better search engine rankings as most engines treat the subdomain as a separate website address.

However, there are certain things to consider before setting up subdomains for your website.

One of particular note is that if you use cookies in your website. A cookie set from a subdomain cannot be read from the main domain, and vice versa because of the security association feature tied to the domain which set it. This is also true for session cookies. If the user is logged in on the main site, and then moves to a subdomain, the subdomain site will not be able to access the same session cookie, and will assign a new session – which then forces the user to log in again. Implementing URL rewrites instead of session cookies is the common solution here, but it’s something a webmaster needs to be aware of.

In addition, your website stats will often not include the statistics of the subdomains and you’ll have to set up separate statistics for your subdomains. Subdomains allow a website to be broken down into smaller pieces without losing the brand image associated with the domain name. The subdomains can be hosted on separate servers in order to reduce the burden on the main domain hosting server.

Many web hosting providers do not provide subdomains in their hosting packages and / or charge extra for subdomain setup and maintenance. It’s also common that if you have a subdomain and want to move your site, you have to choose a provider which supports subdomains.

So if you’re looking for Canadian web hosting with subdomains included, we’ve got that for you with our Business and Advanced web hosting packages, competitively priced and featuring all the rock-solid reliability that 4GoodHosting is known for.

DNS – “What Is It and How Does It Work?”

Reading Time: 3 minutes

index

DNS is an acronym that stands for “domain name system”. Without domain names, we wouldn’t have a way of getting to particular a website, such as numbers like 292.14.78.251, or worse the new ipv6 numbers that are much longer, too long in fact to provide an example here.

In this article we will give an overview of how D.N.S functions. The most important thing, that our web hosting customers can learn from this, is the process of how DNS records are changed, or updated to your web host’s “name servers” address’. These are important domain names which also rely on the DNS system to be converted into your webserver’s numerical IP-address.

“Name Servers”

Name servers enable people to use their domain name in order to access your webserver; which then in turn directs your site visitors to your specific web hosting account and files, rather than a complex IP address. DNS also makes economical “shared hosting” possible, since the server’s IP address can be reused for dozens of different websites.

Your name servers are the most important detail of your domain record, again their purpose is to redirect a visitor’s web browser to the place, that is web-server on a rack in a data-room someplace, where your site is being hosted.

Modifying your domain name server(s) enables you to change your web host without having to transfer your domain to another registrar.

Name servers can also be referred to as DNS servers; which can create confusion due to the two synonymous terms.

DNS Records

DNS refers to the layer of the internet stack, very similar to a database application, that contains the domain names, name servers, IP address’ and personal or company registration information encapsulating every public site on the Internet.
DNS records contain various types of data, syntax, and commands for how a webserver should respond to lookup requests.

Some of the most common syntax items defined:

· “A”-record. The actual webserver IP address that is associated with the domain.

· “CNAME”-record. CNAME indicates sub-domains that can be associated with your domain.

· “MX”-record. This refers to specific mail servers that might be optionally used in accordance with your domain, such as using gmail with your domain for email.

· “NS”-record. The nameservers that are currently set for your domain.

· “SOA”-record. Information about your domain, like when your domain was last updated and relevant contact information.

· “TXT”-record. Text about any additional information about the domain.

As you can see, there are numerous components of your DNS records, but most of this information can’t and shouldn’t be altered. The main component of your DNS records that will be of concern to you, if you ever have to change, is your name servers.

Changing Name Servers



Registrars are responsible for allowing you to edit your DNS record name severs. The default usually automatically assigns same host and registrar upon registration. Domain transfers usually carry over using the same name server information as from the previous registrar.

However, if your domain is not registered and also hosted in the same place, then you’ll follow the general steps below to update the name servers.

4GoodHosting customers can follow these instructions to change their name servers:

1. Locate Domain Management

Every registrar has domain management tools which allow you to edit your name servers. This ability will usually be found on the domain management area your client account/portal.

2. Find Your Name Servers

Under each of your individual domain(s) you’ll be able to change your name servers. Your name servers will look something like this:
ns1.4GoodHosting.com
ns2.4GoodHosting.com
You will need to change both the “primary” and “secondary” name server. The second server exists in the rare even that the first one crashes, or some other condition that prevents it from being resourced.

3. Setting New Name Servers

Simply change your existing name servers to the new name servers and click “Update” or “Save”. These changes don’t take place immediately across the entire internet. Domain name server updates usually take anywhere from 4-24 hours to ‘propagate’ throughout the global DNS internet system.

With this information, you are able to understand some key functionality of how the internet logically works. If you have any remaining questions concerning your domains or domain records, please contact us at support @ 4goodhosting.com for a rapid response to your inquiries.

Please contact us at one of the very best Canadian Web Hosting Companies, 4GoodHosting.