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.

Defining DNS…. And What’s Exactly In It For Hackers?

Reading Time: 3 minutes

DNS isn’t exactly a buzzword in discussions among web hosting providers or those in the web hosting industry, but it’s darn close to it. DNS is an acronym for Domain Name Servers and what DNS does is see to it that after entering a website URL into your browser you then end up in the right spot – among the millions upon millions of them – on the World Wide Web.

DNS. Domain name system sign on white background

When you enter this URL, your browser starts trying to figure out where that website is by pinging a series of servers. These could be resolving name servers, authoritative name servers, or domain registrars, among others. But those servers themselves – often located all around the world – are only fulfilling an individual part in the overall process.

The process itself is a verification of identities by means of converting URLs into identifiable IP addresses, which the networks communicate with each other and by which your browser confirms that it’s taking you down the right path. In a world with literally billions of paths, that’s a more impressive feat than you might think, especially when you consider it’s done in mere seconds and with impressive consistency.

It’s quite common to hear of DNS in conjunction with DDoS, with is another strange acronym that is paired with the term ‘attack’ to create a phenomena noun. What DDoS is and how it’s related so explicitly to DNS much of the time is as follows:

A DDoS attack is a common hack in which multiple compromised computers are used to attack a single system by overloading it with server requests. In a DDoS attack, hackers will use often use infected computers to create a flood of traffic originating from many different sources, potentially thousands or even hundreds of thousands. By using all of the infected computers, a hacker can effectively circumvent any blocks that might be put on a single IP address. It also makes it harder to identify a legitimate request compared to one coming from an attacker.

The DNS is compromised in the way browsers essentially can’t figure out where to go to find the information to load on the screen. This type of attack happens typically involves hackers creating a little army of private computers infected with malicious software known as a Botnet. The people that are often participating in the attack don’t realize their computer has been compromised, and is now a part of the growing problem.

Why Go To So Much Trouble?

With all of this now understood, it begs the question – What’s in it for hackers to do this?

technology, cyberspace, virtual reality and people concept - man or hacker in headset and eyeglasses with keyboard hacking computer system or programming over binary code projection

It’s believed that the initial appeal of hacking is in proving that you can penetrate something / somewhere that’s purported to be impenetrable, and where someone with a skill set similar to yours has gone to significant effort to make it that way. It’s very much a geeks’ chest thumping competition – my virtual handiwork is better than yours!

As hackers become established and the ‘novelty’ of hacking wears off however, these individuals often find new inspiration for their malicious craft. The more time they spend doing it, the sooner they realize that a certain level of skills can introduce them to opportunities for making money with hacking. Among other scenarios, this can be either by stealing credit card details and using them to buy virtual goods, or by getting paid to create malware that others will pay for. And that happens much more often than you might think.

Their creations may silently take over a computer, or subvert a web browser so it goes to a particular site for which they get paid, or lace a website with commercial spam. As the opportunities in the digital world increase, hacking opportunities increase right along with them and that’s the way it will continue to be

Here at 4GoodHosting, we are constantly reevaluating the security measures we have in place to defend our clients’ websites from DDoS attacks, as well as keeping on top of industry trends and products that help us keep hackers and their nefarious handiwork away from you and your website. It’s a priority for sure.